Created
February 27, 2013 19:55
-
-
Save paulsturgess/5051145 to your computer and use it in GitHub Desktop.
Retry Resque jobs. Note this is sudo code, something like this should work...
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
index = 0 | |
loop do | |
failure = Resque::Failure.all(index) | |
break if failure.nil? | |
if failure["queue"] == "queue_name" | |
Resque::Failure.requeue(index) | |
Resque::Failure.remove(index) | |
else | |
index += 1 | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment