Skip to content

Instantly share code, notes, and snippets.

@humpok
Created September 13, 2018 13:38
Show Gist options
  • Save humpok/8c5bcd25efc6062bf7512d63c72d0c75 to your computer and use it in GitHub Desktop.
Save humpok/8c5bcd25efc6062bf7512d63c72d0c75 to your computer and use it in GitHub Desktop.
Delete All Sidekiq Batches and Jobs
Sidekiq::BatchSet.new.each { |batch| Sidekiq::Batch::Status.new(batch.bid).delete }
Sidekiq::Queue.all.each(&:clear)
@sirwolfgang
Copy link

Sidekiq::BatchSet.new.each { |batch| Sidekiq::Batch.new(batch.bid).invalidate_all }

@enderahmetyurt
Copy link

thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment