Parallels/rq-dashboard

RQ dashboard showing failed jobs, while rq.count is 0

Opened this issue · 0 comments

ilmoi commented

After running my cleaning script:

    Qs = ['default', 'failed']
    for q in Qs:
        try:
            rq = Queue(q, connection=redis_conn)
            rq.empty()

rq.count is showing 0 both for failed and for default queues. However, when I go into the dashboard I see X failed jobs (number changes).

Restarts don't helps. I've also tried all approaches listed in this thread, and none of them worked. I think that's beacuse there actually are no failed jobs (they have been cleaned successfully), but rq-dashboard is somehow still registering them.

How is this possible? How do I clean them out?