Created
May 28, 2014 20:47
-
-
Save ccurtisj/946ec092a7f9d11e2ff9 to your computer and use it in GitHub Desktop.
Retrieve a failed or scheduled job from sidekiq
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
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