Sha256: 8563937e02d6107c0d8a7eaa110cb86b60419bffa65070869323e5441da79ee7

Contents?: true

Size: 1.24 KB

Versions: 2

Compression:

Stored size: 1.24 KB

Contents

  <h1 class="wi"><%= worker_jobs.size %> of <%= workers.size %> Workers Working</h1>
  <p class="intro">The list below contains all workers which are currently running a job.</p>
  <table class="table table-bordered workers">
    <tr>
      <th>&nbsp;</th>
      <th>Where</th>
      <th>Queue</th>
      <th>Processing</th>
    </tr>
    <% if worker_jobs.empty? %>
    <tr>
      <td colspan="4" class="no-data">Nothing is happening right now...</td>
    </tr>
    <% end %>

    <% sorted_worker_jobs.each do |worker, job| %>
      <tr>
        <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"><%= link_to "#{host}:#{pid}", worker_path(host) %></td>
        <td class="queues queue">
          <%= link_to job['queue'], queue_path(job['queue']), :class => 'label label-info' %>
        </td>
        <td class="process">
          <% if job['queue'] %>
            <code><%= job['payload']['class'] %></code>
            <small><%= job['run_at'] %></small>
          <% else %>
            <span class="waiting">Waiting for a job...</span>
          <% end %>
        </td>
      </tr>
    <% end %>
  </table>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
resque-web-0.0.5 app/views/resque_web/working/_working.html.erb
resque-web-0.0.4 app/views/resque_web/working/_working.html.erb