code: def job_details(job_id, connection=None):
      
      if connection is None:
          connection = r
      data = connection.hgetall(job_key(job_id))
  
      job_data = {'id': job_id, 'schedule_at': int(connection.zscore(REDIS_KEY,
                                                                     job_id))}
      for key, value in data.items():
          try:
              decoded = value.decode('utf-8')
          except UnicodeDecodeError:
              decoded = value
          if decoded.isdigit():
              decoded = int(decoded)
          job_data[key.decode('utf-8')] = decoded
      return job_data
docs: Returns the job data with its scheduled timestamp.
  
      :param job_id: the ID of the job to retrieve.