Last active
May 17, 2016 17:36
-
-
Save bdcravens/8c005e16f7a048dcf4ea5aea023d4a50 to your computer and use it in GitHub Desktop.
Count retries by queue in sidekiq
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
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