django-rq
django-rq copied to clipboard
admin interface to clear failed jobs?
Am I missing something?
I have some queues with lots of very old failed jobs. I'd like to clean things up, but the only "bulk" options I have are to clear the entire queue (which would include queued jobs as well), or "requeue" jobs, which I also don't want to do.
I guess I could go through and delete from the failed list 50 jobs at a time, but that seems to be a lot of pointing and clicking.
(hmm, maybe this was added to 2.4? I'm still on 2.3.2...)
Yeah @ccurvey I see this as well. I too have to delete jobs in batches 😆
I had this exact problem so I created a Django management command to do bulk deletions of failed jobs. The code gist is here.
Hm, perhaps I am missing something but when I go to /django-rq as a superuser I can delete jobs. I am using Django, Django Rest Framework, and Django admin
Sure you can delete 50 jobs at a time from the web UI. But if you have hundreds or thousands of failed jobs to delete that becomes very tedious.
Ideally, there's also an option to delete all and not just the 50 selected jobs from the queue, similar to how Django's admin behaves. I'd be happy to accept a PR for this.