Skip to content

Instantly share code, notes, and snippets.

@bdcravens
Last active May 17, 2016 17:36
Show Gist options
  • Save bdcravens/8c005e16f7a048dcf4ea5aea023d4a50 to your computer and use it in GitHub Desktop.
Save bdcravens/8c005e16f7a048dcf4ea5aea023d4a50 to your computer and use it in GitHub Desktop.
Count retries by queue in sidekiq
retries_by_queue = {}
Sidekiq::RetrySet.new.each {|r| retries_by_queue[r.klass] += 1 }
puts retries_by_queue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment