%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 %>
">Retry
<% end %>
- Class
<%= job['payload']['class'] %>
- Arguments
<%=h show_args(job['payload']['args']) %>
- Exception
<%= job['exception'] %>
- Error
-
<%= h(job['error']) %>
<%=h job['backtrace'].join("\n") %>
<%end%>
<%= partial :next_more, :start => start, :size => size %>