Skip to content

Instantly share code, notes, and snippets.

@bdcravens
Created January 22, 2015 23:42
Show Gist options
  • Save bdcravens/f667b4aba9d7344a65d7 to your computer and use it in GitHub Desktop.
Save bdcravens/f667b4aba9d7344a65d7 to your computer and use it in GitHub Desktop.
delete Sidekiq retries for only a certain queue
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