%start = params[:start].to_i %>
<%failed = Resque::Failure.all(start, 20)%>
<% index = 0 %>
Failed Jobs
<%unless failed.empty?%>
<%end%>
Showing <%=start%> to <%= start + 20 %> of <%= size = Resque::Failure.count %> jobs
<%for job in failed%>
<% index += 1 %>
-
- Worker
-
<%= job['worker'].split(':')[0...2].join(':') %> on <%= job['queue'] %> at <%= job['failed_at'] %>
<% if job['retried_at'] %>
Retried
<%= job['retried_at'] %>
<% else %>
" rel="retry">Retry
<% end %>
- Class
<%= job['payload']['class'] %>
- Arguments
<%=h show_args(job['payload']['args']) %>
- Exception
<%= job['exception'] %>
- Error
-
<% if job['backtrace'] %>
<%= h(job['error']) %>
<%=h job['backtrace'].join("\n") %>
<% else %>
<%=h job['error'] %>
<% end %>
<%end%>
<%= partial :next_more, :start => start, :size => size %>