Skip to content

Instantly share code, notes, and snippets.

@KensoDev
Created October 10, 2011 15:55
Show Gist options
  • Select an option

  • Save KensoDev/1275672 to your computer and use it in GitHub Desktop.

Select an option

Save KensoDev/1275672 to your computer and use it in GitHub Desktop.
Re-Queue all Resque failed jobs, delete them from the "failed" and put it into the queue
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