Last active
April 27, 2018 21:32
-
-
Save patrickmcguire/557ae178d5897059541070ab5b911a63 to your computer and use it in GitHub Desktop.
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
Sidekiq::Queue.new.select do |job| | |
(job.args[0]["job_class"] == "OurSpecialClass") && | |
(job.args[0]["arguments"][0]["_aj_globalid"] == "gid://our_id") && | |
(job.args[0]["arguments"][1] == event_type) | |
end.any? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment