Sha256: 4b03cfec626c80c3102825862e7972bce0552838623b2246505c6004b8d649ca

Contents?: true

Size: 1.26 KB

Versions: 14

Compression:

Stored size: 1.26 KB

Contents

  <h1 class="wi"><%= @workers.size %> Workers</h1>
  <p class="intro">The workers listed below are all registered as active on your system.</p>

  <table class="table table-bordered workers">
    <tr>
      <th>&nbsp;</th>
      <th>Where</th>
      <th>Queues</th>
      <th>Processing</th>
    </tr>
    <% @workers.each do |worker| %>
    <tr class="<% worker.state %>">
      <td class="icon"><%= image_tag "resque_web/#{worker.state}.png", :alt => worker.state, :title => worker.state %></td>

      <% host, pid, queues = worker.to_s.split(':') %>
      <td class="where"><%= host %>:<%= pid %></td>
      <td class="queues">
        <% queues.split(',').each do |queue_name| %>
        <%= link_to queue_name, queue_path(queue_name), :class => 'label label-info' %>
        <% end %>
      </td>
      <td class="process">
        <% data = worker.processing || {} %>
        <% if data['queue'] %>
          <code><%= data['payload']['class'] %></code>
          <small><%= data['run_at'] %></small>
        <% else %>
          <span class="waiting">Waiting for a job...</span>
        <% end %>
      </td>
    </tr>
    <% end %>
    <% if @workers.empty? %>
    <tr>
      <td colspan="4" class="no-data">There are no registered workers</td>
    </tr>
    <% end %>
  </table>

Version data entries

14 entries across 14 versions & 4 rubygems

Version Path
resque-web-0.0.12 app/views/resque_web/workers/show.html.erb
resque-web-0.0.11 app/views/resque_web/workers/show.html.erb
resque-web-0.0.10 app/views/resque_web/workers/show.html.erb
misha-resque-web-0.1.1 app/views/resque_web/workers/show.html.erb
misha-resque-web-0.1.0 app/views/resque_web/workers/show.html.erb
misha-resque-web-0.0.9 app/views/resque_web/workers/show.html.erb
resque-web-0.0.9 app/views/resque_web/workers/show.html.erb
resque-web-0.0.8 app/views/resque_web/workers/show.html.erb
resque-web-edge-1.0.0 app/views/resque_web/workers/show.html.erb
resque-web-0.0.7 app/views/resque_web/workers/show.html.erb
resque-web-clone-0.0.6 app/views/resque_web/workers/show.html.erb
resque-web-0.0.6 app/views/resque_web/workers/show.html.erb
resque-web-0.0.5 app/views/resque_web/workers/show.html.erb
resque-web-0.0.4 app/views/resque_web/workers/show.html.erb