lib/resque/server.rb in mongo-resque-1.18.2 vs lib/resque/server.rb in mongo-resque-1.19.0
- old
+ new
@@ -212,9 +212,16 @@
post "/failed/clear" do
Resque::Failure.clear
redirect u('failed')
end
+ post "/failed/requeue/all" do
+ Resque::Failure.count.times do |num|
+ Resque::Failure.requeue(num)
+ end
+ redirect u('failed')
+ end
+
get "/failed/requeue/:index" do
Resque::Failure.requeue(params[:index])
if request.xhr?
return Resque::Failure.all(params[:index])['retried_at']
else