2013-08-21 18:38:52 -04:00
|
|
|
<header>
|
|
|
|
<h3><%= t('Job') %></h3>
|
|
|
|
</header>
|
|
|
|
|
|
|
|
<table class="table table-bordered table-striped">
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
|
|
|
<th><%= t('Queue') %></th>
|
|
|
|
<td>
|
2014-05-19 23:54:28 -04:00
|
|
|
<a href="<%= root_path %>queues/<%= job.queue %>"><%= job.queue %></a>
|
2013-08-21 18:38:52 -04:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2014-05-19 23:54:28 -04:00
|
|
|
<th><%= t('Job') %></th>
|
2013-08-21 18:38:52 -04:00
|
|
|
<td>
|
2014-05-19 23:54:28 -04:00
|
|
|
<code><%= job.display_class %></code>
|
2013-08-21 18:38:52 -04:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th><%= t('Arguments') %></th>
|
|
|
|
<td>
|
2013-12-12 00:18:55 -05:00
|
|
|
<code class="code-wrap">
|
2013-08-21 18:38:52 -04:00
|
|
|
<!-- We don't want to truncate any job arguments when viewing a single job's status page -->
|
2014-05-19 23:54:28 -04:00
|
|
|
<div class="args-extended"><%= display_args(job.display_args, nil) %></div>
|
2013-08-21 18:38:52 -04:00
|
|
|
</code>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th>JID</th>
|
|
|
|
<td>
|
|
|
|
<code><%= job.jid %></code>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th><%= t('Enqueued') %></th>
|
|
|
|
<td><%= relative_time(job.enqueued_at) %></td>
|
|
|
|
</tr>
|
|
|
|
<% unless retry_extra_items(job).empty? %>
|
|
|
|
<tr>
|
|
|
|
<th><%= t('Extras') %></th>
|
|
|
|
<td>
|
|
|
|
<code>
|
|
|
|
<%= retry_extra_items(job).inspect %>
|
|
|
|
</code>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<% end %>
|
|
|
|
<% if type == :retry %>
|
|
|
|
<% if job['retry_count'] && job['retry_count'] > 0 %>
|
|
|
|
<tr>
|
|
|
|
<th><%= t('RetryCount') %></th>
|
|
|
|
<td><%= job['retry_count'] %></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th><%= t('LastRetry') %></th>
|
2014-02-13 23:56:56 -05:00
|
|
|
<td><%= relative_time(Time.at(job['retried_at'])) %></td>
|
2013-08-21 18:38:52 -04:00
|
|
|
</tr>
|
|
|
|
<% else %>
|
|
|
|
<tr>
|
|
|
|
<th><%= t('OriginallyFailed') %></th>
|
2014-02-13 23:56:56 -05:00
|
|
|
<td><%= relative_time(Time.at(job['failed_at'])) %></td>
|
2013-08-21 18:38:52 -04:00
|
|
|
</tr>
|
|
|
|
<% end %>
|
|
|
|
<tr>
|
|
|
|
<th><%= t('NextRetry') %></th>
|
|
|
|
<td><%= relative_time(job.at) %></td>
|
|
|
|
</tr>
|
|
|
|
<% end %>
|
|
|
|
<% if type == :scheduled %>
|
|
|
|
<tr>
|
|
|
|
<th><%= t('Scheduled') %></th>
|
|
|
|
<td><%= relative_time(job.at) %></td>
|
|
|
|
</tr>
|
|
|
|
<% end %>
|
2014-02-09 17:56:01 -05:00
|
|
|
<% if type == :dead %>
|
|
|
|
<tr>
|
|
|
|
<th><%= t('LastRetry') %></th>
|
|
|
|
<td><%= relative_time(job.at) %></td>
|
|
|
|
</tr>
|
|
|
|
<% end %>
|
2013-08-21 18:38:52 -04:00
|
|
|
</tbody>
|
|
|
|
</table>
|