Skip to content

Instantly share code, notes, and snippets.

@davidoram
Created March 6, 2016 22:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davidoram/4eff788c3037d0ca358d to your computer and use it in GitHub Desktop.
Save davidoram/4eff788c3037d0ca358d to your computer and use it in GitHub Desktop.
Snippet to find Sidekiq workers in the Retry queue, of a given worker type
query = Sidekiq::RetrySet.new
callbacks = query.select {|j| j.klass == 'CallbackNotificationWorker' }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment