% if params[:id] && (current_worker = Resque::Worker.find(params[:id])) && (data = current_worker.job) %>
Where | Queue | Started | Class | Args | |
---|---|---|---|---|---|
<% host, pid, _ = current_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'] %> <%= partial :processing, :worker => worker, :job => job %> <% else %> Waiting for a job... <% end %> |