Last active
February 15, 2019 22:56
-
-
Save waltercool/dfe52ad1868939fd36825c565363e4a5 to your computer and use it in GitHub Desktop.
Sidekiq Swiss Knife
This file contains 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
# Clear all sidekiq scheduled | |
require 'sidekiq/api' | |
Sidekiq::ScheduledSet.new.clear | |
# Clear an specific queue by job name | |
jobs = Sidekiq::ScheduledSet.new.select {|retri| retri.klass == 'job_name' } | |
jobs.each(&:delete) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment