Created
January 22, 2015 23:42
-
-
Save bdcravens/f667b4aba9d7344a65d7 to your computer and use it in GitHub Desktop.
delete Sidekiq retries for only a certain queue
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
query = Sidekiq::RetrySet.new | |
query.select do |job| | |
job.queue=='ups_tracking' | |
end.map(&:delete) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment