<% if params[:id] && worker = Resque::Worker.find(params[:id]) %>

Worker <%= worker %>

<% host, pid, queues = worker.to_s.split(':') %>
  Host Pid Started Queues Processed Failed Processing
<%= state %><%= host %> <%= pid %> <%= worker.started %> <%= queues.split(',').map { |q| '' + q + ''}.join('') %> <%= worker.processed %> <%= worker.failed %> <% data = worker.processing || {} %> <% if data['queue'] %> <%= data['payload']['class'] %> "><%= data['run_at'] %> <% else %> Waiting for a job... <% end %>
<% elsif params[:id] %>

Worker doesn't exist

<% else %>

<%= resque.workers.size %> Workers

The workers listed below are all registered as active on your system.

<% for worker in (workers = resque.workers.sort_by { |w| w.to_s }) %> <% host, pid, queues = worker.to_s.split(':') %> <% end %> <% if workers.empty? %> <% end %>
  Where Queues Processing
<%= state %>"><%= host %>:<%= pid %> <%= queues.split(',').map { |q| '' + q + ''}.join('') %> <% data = worker.processing || {} %> <% if data['queue'] %> <%= data['payload']['class'] %> "><%= data['run_at'] %> <% else %> Waiting for a job... <% end %>
There are no registered workers
<%=poll%> <% end %>