Last active
August 29, 2015 14:01
-
-
Save Aeon/083ade02142bff1d4663 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#!/usr/bin/env ruby | |
require 'resque' | |
Resque.redis.namespace = "resque:#{ENV['APP_NAME']}" | |
while Resque::Failure.count > 0 do |i| | |
job = Resque::Failure.all(0,1) | |
unless !job || job['retried_at'].nil? | |
Resque::Failure.remove(0) | |
else | |
break | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment