Created
April 27, 2018 21:24
-
-
Save patrickmcguire/fefdc01af6a5b7600a5608794b4e9e34 to your computer and use it in GitHub Desktop.
sidekiq mistake
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(:hook_event).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