-
-
Notifications
You must be signed in to change notification settings - Fork 16
Closed
Description
Hi!
I the old verison I used a function like this:
class GetJobsView(View):
def get(self, request, *args, **kwargs):
job_list = []
for queue_name in SCHEDULER_QUEUES.keys():
queue = get_queue(queue_name)
q_job_list = [{x.id: x.description} for x in queue.jobs]
job_list.extend(q_job_list)
return JsonResponse({'status': 'okay', 'jobs': job_list})
to get alle the jobs in the different queues. How can this be done now with Version4?
Thank you
Metadata
Metadata
Assignees
Labels
No labels