Created
September 13, 2018 13:38
-
-
Save humpok/8c5bcd25efc6062bf7512d63c72d0c75 to your computer and use it in GitHub Desktop.
Delete All Sidekiq Batches and Jobs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sidekiq::BatchSet.new.each { |batch| Sidekiq::Batch::Status.new(batch.bid).delete } | |
Sidekiq::Queue.all.each(&:clear) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment