Skip to content

Instantly share code, notes, and snippets.

@ccurtisj
Created May 28, 2014 20:47
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 ccurtisj/946ec092a7f9d11e2ff9 to your computer and use it in GitHub Desktop.
Save ccurtisj/946ec092a7f9d11e2ff9 to your computer and use it in GitHub Desktop.
Retrieve a failed or scheduled job from sidekiq
jid = 'ff07b7f9897d2472e1a4536c'
score = Time.parse('2014-05-29 11:00:00').to_f
scheduled_job = Sidekiq::ScheduledSet.new.fetch(score, jid).first
failed_job = Sidekiq::Failures::FailureSet.new.fetch(score, jid).first
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment