lib/resque/server.rb in resque-1.6.0 vs lib/resque/server.rb in resque-1.6.1

- old
+ new

@@ -122,10 +122,15 @@ get "/#{page}/:id" do show page end end + + post "/queues/:id/remove" do + Resque.remove_queue(params[:id]) + redirect u('queues') + end %w( overview workers ).each do |page| get "/#{page}.poll" do content_type "text/plain" @polling = true @@ -141,9 +146,14 @@ end end post "/failed/clear" do Resque::Failure.clear + redirect u('failed') + end + + get "/failed/requeue/:index" do + Resque::Failure.requeue(params[:index]) redirect u('failed') end get "/stats" do redirect url("/stats/resque")