File tree Expand file tree Collapse file tree 3 files changed +12
-2
lines changed
Expand file tree Collapse file tree 3 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -176,6 +176,13 @@ def show_for_polling(page)
176176 redirect u ( 'failed' )
177177 end
178178
179+ post "/failed/requeue/all" do
180+ Resque ::Failure . count . times do |num |
181+ Resque ::Failure . requeue ( num )
182+ end
183+ redirect u ( 'failed' )
184+ end
185+
179186 get "/failed/requeue/:index" do
180187 Resque ::Failure . requeue ( params [ :index ] )
181188 if request . xhr?
Original file line number Diff line number Diff line change @@ -80,6 +80,6 @@ body { padding:0; margin:0; }
8080# main p .pagination a .less { float : left;}
8181# main p .pagination a .more { float : right;}
8282
83- # main form {float : right; margin-top : -10px ;}
83+ # main form {float : right; margin-top : -10px ;margin-left : 10 px ; }
8484
8585# main .time a .toggle_format {text-decoration : none;}
Original file line number Diff line number Diff line change 55
66 <h1 > Failed Jobs</ h1 >
77<% unless failed . empty? %>
8- < form method ="POST " action ="<%= u 'failed/clear' %> " class =' clear-failed ' >
8+ < form method ="POST " action ="<%= u 'failed/clear' %> ">
99 < input type ='submit ' name ='' value ='Clear Failed Jobs ' />
1010</ form >
11+ < form method ="POST " action ="<%= u 'failed/requeue/all' %> ">
12+ < input type ='submit ' name ='' value ='Retry Failed Jobs ' />
13+ </ form >
1114<% end%>
1215
1316< p class ='sub '> Showing <%= start%> to <%= start + 20 %> of < b > <%= size = Resque ::Failure . count %> </ b > jobs</ p >
You can’t perform that action at this time.
0 commit comments