2013-08-21 18:38:52 -04:00
|
|
|
<table class="workers table table-hover table-bordered table-striped table-white">
|
|
|
|
<thead>
|
|
|
|
<th><%= t('Worker') %></th>
|
|
|
|
<th><%= t('Queue') %></th>
|
|
|
|
<th><%= t('Class') %></th>
|
|
|
|
<th><%= t('Arguments') %></th>
|
|
|
|
<th><%= t('Started') %></th>
|
|
|
|
</thead>
|
|
|
|
<% workers.each_with_index do |(worker, msg), index| %>
|
|
|
|
<tr>
|
|
|
|
<td><%= worker %></td>
|
|
|
|
<td>
|
2013-08-26 12:14:35 -04:00
|
|
|
<a href="<%= root_path %>queues/<%= msg['queue'] %>"><%= msg['queue'] %></a>
|
2013-08-21 18:38:52 -04:00
|
|
|
</td>
|
|
|
|
<td><%= msg['payload']['class'] %></td>
|
|
|
|
<td>
|
2014-01-27 23:26:51 -05:00
|
|
|
<div class="args"><%= display_args(msg['payload']['args']) %></div>
|
2013-08-21 18:38:52 -04:00
|
|
|
</td>
|
|
|
|
<td><%= relative_time(msg['run_at'].is_a?(Numeric) ? Time.at(msg['run_at']) : Time.parse(msg['run_at'])) %></td>
|
|
|
|
</tr>
|
|
|
|
<% end %>
|
|
|
|
</table>
|