Expected failures log <% if @date %> (<%= @date %>) <% end %>

<% unless @counters.empty? %>
<% @counters.each do |exception, count| %>
<%= exception %>
<%= count %>
<% end %>
<% end %> <% if @jobs.any? || @counters.any? %>
<% end %> <% if @jobs.any? %>

<%= erb :_paging, :locals => { :url => "#{root_path}expected_failures/#{@date}" } %> <% @jobs.each do |job| %> <% end %>
Datetime Worker Exception Queue Arguments
<%= Time.parse(job['failed_at']).strftime('%m/%d/%Y %H:%M:%S') %> <%= job["worker"] %> <%= job["exception"] %> (<%= job["error"]%>) "><%= job["queue"] %> <%= link_to_details(job) %>
<%= erb :_paging, :locals => { :url => "#{root_path}expected_failures/#{@date}" } %> <% else %>

No failed jobs found.
<% end %>