Skip to content

Instantly share code, notes, and snippets.

@paulsturgess
Created February 27, 2013 19:55
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 paulsturgess/5051145 to your computer and use it in GitHub Desktop.
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...
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