Sha256: c7843c5762540ac9a6cca0b6b8a13d64215189fcf42c8fd86ec2ffa4fe8d0465

Contents?: true

Size: 1.78 KB

Versions: 8

Compression:

Stored size: 1.78 KB

Contents

<li>
  <dl>
    <% if job.nil? %>
    <dt>Error</dt>
    <dd>Job <%= id %> could not be parsed; perhaps it contains invalid JSON?</dd>
    <% else %>
    <dt>Worker</dt>
    <dd>
      <a href="<%= u(:workers, job['worker']) %>"><%= job['worker'].split(':')[0...2].join(':') %></a> on <b class='queue-tag'><%= job['queue'] %></b > at <b><span class="time"><%= DateTime.parse(job['failed_at']).strftime(failed_date_format) %></span></b>
      <% if job['retried_at'] %>
        <div class='retried'>
          Retried <b><span class="time"><%= DateTime.parse(job['retried_at']).strftime(failed_date_format) %></span></b>
          <a href="<%= u "#{queue}/remove/#{id}" %>" class="remove" rel="remove">Remove</a>
        </div>
      <% else %>
        <div class='controls'>
          <a href="<%= u "#{queue}/requeue/#{id}" %>" rel="retry">Retry</a>
          or
          <a href="<%= u "#{queue}/remove/#{id}" %>" rel="remove">Remove</a>
        </div>
      <% end %>
    </dd>
    <dt>Class</dt>
    <dd>
      <% if job['payload'] && job['payload']['class'] %>
        <a href="<%= u "failed/#{params[:queue]}?class=#{job['payload']['class']}" %>">
          <%= partial :job_class, :job => job['payload'] %>
        </a>
      <% else %>
        <code>nil</code>
      <% end %>
    </dd>
    <dt>Arguments</dt>
    <dd><pre><%=h job['payload'] ? show_args(job['payload']['args']) : 'nil' %></pre></dd>
    <dt>Exception</dt>
    <dd><code><%= job['exception'] %></code></dd>
    <dt>Error</dt>
    <dd class='error'>
      <% if job['backtrace'] %>
        <a href="#" class="backtrace"><%= h(job['error']) %></a>
        <pre style='display:none'><%=h job['backtrace'].join("\n") %></pre>
      <% else %>
        <%=h job['error'] %>
      <% end %>
    </dd>
    <% end %>
  </dl>
  <div class='r'>
  </div>
</li>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
resque-2.6.0 lib/resque/server/views/failed_job.erb
resque-2.5.0 lib/resque/server/views/failed_job.erb
resque-2.4.0 lib/resque/server/views/failed_job.erb
resque-2.3.0 lib/resque/server/views/failed_job.erb
resque-2.2.1 lib/resque/server/views/failed_job.erb
resque-2.2.0 lib/resque/server/views/failed_job.erb
resque-2.1.0 lib/resque/server/views/failed_job.erb
resque-2.0.0 lib/resque/server/views/failed_job.erb