Skip to content

Instantly share code, notes, and snippets.

@KensoDev
Created October 28, 2011 18:42
Show Gist options
  • Save KensoDev/1323028 to your computer and use it in GitHub Desktop.
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
task :requeue_failed do
(Resque::Failure.count-1).downto(0).each do |i|
Resque::Failure.requeue(i)
Resque::Failure.remove(i)
end
end
@wxianfeng
Copy link

awesome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment