Created
December 31, 2013 21:23
-
-
Save ciberch/8202367 to your computer and use it in GitHub Desktop.
Resque Jobs - Clear or Retry
This file contains 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
#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