Created
December 10, 2018 20:32
-
-
Save doyle/518915f12b5ad0556fade85929d566cc to your computer and use it in GitHub Desktop.
Finding sidekiq jobs
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
# Find jobs by class | |
Sidekiq::Queue.new('queue').select{|j| j.display_class == 'Foo'} | |
# Find jobs by argument (foo is the name of the argument and bar is the value in this case) | |
Sidekiq::Queue.new('queue').select{|j| j['args'][0]['foo'] == 'bar'} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment