Skip to content

Instantly share code, notes, and snippets.

@patrickmcguire
Last active April 27, 2018 21:32
Show Gist options
  • Save patrickmcguire/557ae178d5897059541070ab5b911a63 to your computer and use it in GitHub Desktop.
Save patrickmcguire/557ae178d5897059541070ab5b911a63 to your computer and use it in GitHub Desktop.
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