% if params[:id] && (worker = Resque::Worker.find(params[:id])) && (data = worker.job) %>
Where | Queue | Started | Class | Args | |
---|---|---|---|---|---|
<% host, pid, _ = worker.to_s.split(':') %> | "><%= host %>:<%= pid %> | <% queue = data['queue'] %>"><%= queue %> | <%= data['run_at'] %> | <% payload = data.key?('payload') ? data['payload'] : {} %>
<%= payload.key?('class') ? payload['class'] : "—" %>
|
<%=h payload.key?('args') ? payload['args'].inspect : "—" %> |
The list below contains all workers which are currently running a job.
Where | Queue | Processing | |
---|---|---|---|
Nothing is happening right now... | |||
<% host, pid, queues = worker.to_s.split(':') %> | "><%= host %>:<%= pid %> | "><%= job['queue'] %> |
<% if job['queue'] %>
<%= job['payload']['class'] %>
"><%= job['run_at'] %>
<% else %>
Waiting for a job...
<% end %>
|