Parallels/rq-dashboard

Issues to retrieve a large number of failed jobs

louisabraham opened this issue · 1 comments

Hi, my dashboard has become very very very slow. I'm talking about queries that last 5s but when cumulated cause waiting times of 30s.

By examining the requests I think the culprit are the /queues.json and /jobs/failed/1.json endpoints.

I must admit that I have 194681 failed jobs.

Also notice this contradictory information:
image

I'm willing to help! Where should I look?

I'm looking at the serialize_queues function

def serialize_queues(instance_number, queues):

but I cannot figure out where the failed queue is handled (it doesn't really exist).