Clear Sidekiq queues

Posted on Jul 26, 2019

Sidekiq is mostly used for moving long-running jobs into a background process. It uses Redis to manage its job queue. We often need to clear this queue of jobs to start afresh.

To clear the queue of jobs, I ran the following commands as listed in Sidekiq wiki.

Sometimes, these commands would clear the queue. Other times, you would need to clear the queue from Redis itself.

Sidekiq.redis { |conn| conn.flushdb }