Skip to content

Instantly share code, notes, and snippets.

@ciberch
Created December 31, 2013 21:23
Show Gist options
  • Save ciberch/8202367 to your computer and use it in GitHub Desktop.
Save ciberch/8202367 to your computer and use it in GitHub Desktop.
Resque Jobs - Clear or Retry
#count jobs
Resque::Failure.count
# Requeue all jobs in the failed queue
(Resque::Failure.count-1).downto(0).each { |i| Resque::Failure.requeue(i) }
# or
# Clear the failed queue
Resque::Failure.clear
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment