mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
53 lines
1.5 KiB
Text
53 lines
1.5 KiB
Text
<div class="row header">
|
|
<div class="col-sm-7">
|
|
<h3><%= t('Processes') %></h3>
|
|
</div>
|
|
</div>
|
|
|
|
<table class="processes table table-hover table-bordered table-striped table-white">
|
|
<thead>
|
|
<th><%= t('Name') %></th>
|
|
<th><%= t('Started') %></th>
|
|
<th><%= t('Threads') %></th>
|
|
<th><%= t('Busy') %></th>
|
|
</thead>
|
|
<% Sidekiq::ProcessSet.new.each_with_index do |process, index| %>
|
|
<tr>
|
|
<td><%= process['hostname'] %>:<%= process['pid'] %></td>
|
|
<td><%= relative_time(Time.at(process['started_at'])) %></td>
|
|
<td><%= process['concurrency'] %></td>
|
|
<td><%= process['busy'] %></td>
|
|
</tr>
|
|
<% end %>
|
|
</table>
|
|
|
|
<div class="row header">
|
|
<div class="col-sm-7">
|
|
<h3><%= t('Jobs') %></h3>
|
|
</div>
|
|
</div>
|
|
|
|
<table class="workers table table-hover table-bordered table-striped table-white">
|
|
<thead>
|
|
<th><%= t('Process') %></th>
|
|
<th><%= t('Thread') %></th>
|
|
<th><%= t('Queue') %></th>
|
|
<th><%= t('Class') %></th>
|
|
<th><%= t('Arguments') %></th>
|
|
<th><%= t('Started') %></th>
|
|
</thead>
|
|
<% workers.each_with_index do |(process, thread, msg), index| %>
|
|
<tr>
|
|
<td><%= process %></td>
|
|
<td><%= thread %></td>
|
|
<td>
|
|
<a href="<%= root_path %>queues/<%= msg['queue'] %>"><%= msg['queue'] %></a>
|
|
</td>
|
|
<td><%= msg['payload']['class'] %></td>
|
|
<td>
|
|
<div class="args"><%= display_args(msg['payload']['args']) %></div>
|
|
</td>
|
|
<td><%= relative_time(Time.at(msg['run_at'])) %></td>
|
|
</tr>
|
|
<% end %>
|
|
</table>
|