<% processes = Sidekiq::ProcessSet.new @workset = Sidekiq::WorkSet.new @total_size = @workset.size @count = 10 %>

<%= t('Jobs') %>

<% if @workset.size > 0 && @total_size > @count %> <%= erb :_paging, locals: { url: "#{root_path}busy" } %> <% end %>
<% @workset.each do |process, thread, msg| %> <% job = Sidekiq::JobRecord.new(msg['payload']) %> <% end %>
<%= t('JID') %> <%= t('Queue') %> <%= t('Job') %> <%= t('Arguments') %> <%= t('Started') %> <%= t('Signal') %>  
<%= job.jid %> <%= msg['queue'] %> <%= job.display_class %> <%= display_tags(job, nil) %>
<%= display_args(job.display_args) %>
<%= relative_time(Time.at(msg['run_at'])) %> <%= Sidekiq::JobSignal.quitting?(jid: job.jid) ? "quit" : "" %>
<%= csrf_tag %>