fschaeffler
fschaeffler

Reputation: 69

Get number of redis-Keys that have been en-queued for more than 5 minutes

We want to monitor our Sidekiq process and see if some of them are failing. This normally leads to a situation where a Sidekiq-job hangs forever, in case there's an error.

My question is now, how can I get via redis-cli the number of jobs, which have been in the queue for more than 5 minutes?

Upvotes: 0

Views: 410

Answers (1)

Mike Perham
Mike Perham

Reputation: 22228

You cannot do exactly what you ask. Read this:

How to monitor your queue latency https://github.com/mperham/sidekiq/wiki/Monitoring#monitoring-queue-latency

Upvotes: 0

Related Questions