Created
December 11, 2012 23:35
iterate through resque failed jobs
This file contains hidden or 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
1.upto(Resque::Failure.count) do |i| | |
job = Resque::Failure.all(i) | |
# inspect failed job | |
args = job['payload']['args'] | |
klass = job['payload']['class'] | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
hey, this is awesome. thanks!