django-rq icon indicating copy to clipboard operation
django-rq copied to clipboard

Failed job column in rqstats command

Open dangquangdon opened this issue 5 years ago • 2 comments
trafficstars

I wonder why the Failed jobs column isn't shown in the cli command rqstats?

There is queue["failed_jobs"] available in the queue object for that command, and I can add it myself in my local env. I was just wondering what could be the reason not to show it :question: Like some error or something :question:

dangquangdon avatar Apr 08 '20 12:04 dangquangdon

Because it's not implemented in RQ itself. If you're willing to help, please open a PR for this in RQ's repo https://github.com/rq/rq

selwin avatar Jun 28 '20 14:06 selwin

Upon further investigations, rqstats is a management command dprovided by Django-RQ so it should be fixed here. The reason failed jobs are not showing is probably because RQ > 1.x no longer uses FailedQueue. Failed jobs are put in FailedJobRegistry instead.

selwin avatar Jun 28 '20 14:06 selwin