@logic.validate(logic.schema.job_list_schema)
def job_list(context, data_dict):
 _check_access(u'job_list', context, data_dict)
 dictized_jobs = []
 queues = data_dict.get(u'queues')
 if queues:
  queues = [jobs.get_queue(q) for q in queues]
 else:
  queues = jobs.get_all_queues()
 for queue in queues:
  for job in queue.jobs:
   dictized_jobs.append(jobs.dictize_job(job))
 return dictized_jobs

@ logic . validate ( logic . schema . job_list_schema ) def job_list ( context , data_dict ) : _check_access ( u'job_list' , context , data_dict ) dictized_jobs = [ ] queues = data_dict . get ( u'queues' ) if queues : queues = [ jobs . get_queue ( q ) for q in queues ] else : queues = jobs . get_all_queues ( ) for queue in queues : for job in queue . jobs : dictized_jobs . append ( jobs . dictize_job ( job ) ) return dictized_jobs
list enqueued background jobs .