<%= t('Processes') %>

<%= csrf_tag %>
<% processes.each do |process| %> <% end %>
<%= t('Name') %> <%= t('Started') %> <%= t('Threads') %> <%= t('Busy') %>  
<%= "#{process['hostname']}:#{process['pid']}" %> <%= process.tag %> <% process.labels.each do |label| %> <%= label %> <% end %> <% if process.stopping? %> Quiet <% end %>
<%= "#{t('Queues')}: " %> <%= process['queues'] * ", " %>
<%= relative_time(Time.at(process['started_at'])) %> <%= process['concurrency'] %> <%= process['busy'] %>
<%= csrf_tag %> <% unless process.stopping? %> <% end %>

<%= t('Jobs') %>

<% workers.each do |process, thread, msg| %> <% job = Sidekiq::Job.new(msg['payload']) %> <% end %>
<%= t('Process') %> <%= t('TID') %> <%= t('JID') %> <%= t('Queue') %> <%= t('Job') %> <%= t('Arguments') %> <%= t('Started') %>
<%= process %> <%= thread %> <%= job.jid %> <%= msg['queue'] %> <%= job.display_class %>
<%= display_args(job.display_args) %>
<%= relative_time(Time.at(msg['run_at'])) %>