Clear sidekiq queue
You can now do this with one line. Enter rails console and do this:
Sidekiq.redis(&:flushdb)
In case I need it, the other (more tedious) way used to be to run all of these in rails console:
require 'sidekiq/api'
Sidekiq::Queue.all.each(&:clear)
Sidekiq::RetrySet.new.clear
Sidekiq::ScheduledSet.new.clear
Sidekiq::DeadSet.new.clear
Last updated