2013-08-21 18:38:52 -04:00
|
|
|
<header>
|
|
|
|
<h3><%= t('Job') %></h3>
|
|
|
|
</header>
|
|
|
|
|
2015-05-13 19:48:17 -04:00
|
|
|
<div class="table_container">
|
2021-06-22 13:00:22 -04:00
|
|
|
<table class="table table-bordered table-striped table-hover">
|
2015-05-13 19:48:17 -04:00
|
|
|
<tbody>
|
2013-08-21 18:38:52 -04:00
|
|
|
<tr>
|
2015-05-13 19:48:17 -04:00
|
|
|
<th><%= t('Queue') %></th>
|
2013-08-21 18:38:52 -04:00
|
|
|
<td>
|
2015-05-13 19:48:17 -04:00
|
|
|
<a href="<%= root_path %>queues/<%= job.queue %>"><%= job.queue %></a>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th><%= t('Job') %></th>
|
|
|
|
<td>
|
2019-09-23 17:52:15 -04:00
|
|
|
<%= job.display_class %>
|
|
|
|
<%= display_tags(job) %>
|
2015-05-13 19:48:17 -04:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th><%= t('Arguments') %></th>
|
|
|
|
<td>
|
|
|
|
<code class="code-wrap">
|
|
|
|
<!-- We don't want to truncate any job arguments when viewing a single job's status page -->
|
|
|
|
<div class="args-extended"><%= display_args(job.display_args, nil) %></div>
|
2013-08-21 18:38:52 -04:00
|
|
|
</code>
|
|
|
|
</td>
|
|
|
|
</tr>
|
2015-05-13 19:48:17 -04:00
|
|
|
<tr>
|
|
|
|
<th>JID</th>
|
|
|
|
<td>
|
|
|
|
<code><%= job.jid %></code>
|
|
|
|
</td>
|
|
|
|
</tr>
|
2015-12-09 14:44:47 -05:00
|
|
|
<tr>
|
|
|
|
<th><%= t('CreatedAt') %></th>
|
|
|
|
<td><%= relative_time(job.created_at) %></td>
|
|
|
|
</tr>
|
2015-05-13 19:48:17 -04:00
|
|
|
<tr>
|
|
|
|
<th><%= t('Enqueued') %></th>
|
2015-08-13 15:40:10 -04:00
|
|
|
<td><%= (enqueued_at = job.enqueued_at) ? relative_time(enqueued_at) : t('NotYetEnqueued') %></td>
|
2015-05-13 19:48:17 -04:00
|
|
|
</tr>
|
|
|
|
<% unless retry_extra_items(job).empty? %>
|
2013-08-21 18:38:52 -04:00
|
|
|
<tr>
|
2015-05-13 19:48:17 -04:00
|
|
|
<th><%= t('Extras') %></th>
|
|
|
|
<td>
|
|
|
|
<code>
|
|
|
|
<%= retry_extra_items(job).inspect %>
|
|
|
|
</code>
|
|
|
|
</td>
|
2013-08-21 18:38:52 -04:00
|
|
|
</tr>
|
2015-05-13 19:48:17 -04:00
|
|
|
<% 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>
|
|
|
|
<td><%= relative_time(Time.at(job['retried_at'])) %></td>
|
|
|
|
</tr>
|
|
|
|
<% else %>
|
|
|
|
<tr>
|
|
|
|
<th><%= t('OriginallyFailed') %></th>
|
|
|
|
<td><%= relative_time(Time.at(job['failed_at'])) %></td>
|
|
|
|
</tr>
|
|
|
|
<% end %>
|
2013-08-21 18:38:52 -04:00
|
|
|
<tr>
|
2015-05-13 19:48:17 -04:00
|
|
|
<th><%= t('NextRetry') %></th>
|
|
|
|
<td><%= relative_time(job.at) %></td>
|
2013-08-21 18:38:52 -04:00
|
|
|
</tr>
|
2015-05-13 19:48:17 -04:00
|
|
|
<% end %>
|
|
|
|
<% if type == :scheduled %>
|
2013-08-21 18:38:52 -04:00
|
|
|
<tr>
|
2015-05-13 19:48:17 -04:00
|
|
|
<th><%= t('Scheduled') %></th>
|
|
|
|
<td><%= relative_time(job.at) %></td>
|
2013-08-21 18:38:52 -04:00
|
|
|
</tr>
|
|
|
|
<% end %>
|
2015-05-13 19:48:17 -04:00
|
|
|
<% if type == :dead %>
|
|
|
|
<tr>
|
|
|
|
<th><%= t('LastRetry') %></th>
|
2017-03-16 14:33:24 -04:00
|
|
|
<td><%= relative_time(job.at) if job['retry_count'] %></td>
|
2015-05-13 19:48:17 -04:00
|
|
|
</tr>
|
|
|
|
<% end %>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|