Sha256: 884acc9ea334a64f30c6ff3d89da9a16cc01ef579ce0541d57369cf72b583dc0

Contents?: true

Size: 1.13 KB

Versions: 4

Compression:

Stored size: 1.13 KB

Contents

<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>
        <a href="<%= root_path %>queues/<%= msg['queue'] %>"><%= msg['queue'] %></a>
      </td>

      <td><%= msg['payload']['class'] %></td>
      <td>
        <% if msg['payload']['args'].to_s.size > 100 %>
          <%= msg['payload']['args'].inspect[0..100] + "... " %>
          <button data-toggle="collapse" data-target="#worker_<%= index %>" class="btn btn-default btn-xs"><%= t('ShowAll') %></button>
          <div class="toggle" id="worker_<%= index %>" style="display: none;max-width: 750px;"><%= msg['payload']['args'] %></div>
        <% else %>
          <%= msg['payload']['args'] %>
        <% end %>
      </td>
      <td><%= relative_time(msg['run_at'].is_a?(Numeric) ? Time.at(msg['run_at']) : Time.parse(msg['run_at'])) %></td>
    </tr>
  <% end %>
</table>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
sidekiq-2.16.0 web/views/_workers.erb
sidekiq-2.15.2 web/views/_workers.erb
sidekiq-2.15.1 web/views/_workers.erb
sidekiq-2.15.0 web/views/_workers.erb