% if params[:id] && (worker = Resque::Worker.find(params[:id])) && worker.job %>
Where | Queue | Started | Class | Args | |
---|---|---|---|---|---|
<% host, pid, _ = worker.to_s.split(':') %> | "><%= host %>:<%= pid %> | <% data = worker.job %> <% queue = data['queue'] %>"><%= queue %> | <%= data['run_at'] %> |
<%= data['payload']['class'] %>
|
<%=h data['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 %>
|