Created
December 6, 2013 23:13
-
-
Save akachrislee/7833774 to your computer and use it in GitHub Desktop.
removes failed resque jobs (with out retrying)
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
i = 0 | |
queue = 'sftargeting' | |
while job = Resque::Failure.all(i) | |
if job['queue'] == queue | |
# This will remove the failure from the array so do not increment the index. | |
Resque::Failure.remove(i) | |
else | |
i+=1 | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment