Created
October 28, 2011 18:42
-
-
Save KensoDev/1323028 to your computer and use it in GitHub Desktop.
Re-queue all failed workers to the original queue, remove the failed item
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
task :requeue_failed do | |
(Resque::Failure.count-1).downto(0).each do |i| | |
Resque::Failure.requeue(i) | |
Resque::Failure.remove(i) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
awesome!