Skip to content

Missing get_queue function #277

@gkieninger

Description

@gkieninger

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions