mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
Allow process-specific labels for feature tagging, fixes #1673
This commit is contained in:
parent
574e9c80c1
commit
aecfa92a68
3 changed files with 8 additions and 1 deletions
|
@ -13,6 +13,7 @@ module Sidekiq
|
|||
|
||||
DEFAULTS = {
|
||||
:queues => [],
|
||||
:labels => [],
|
||||
:concurrency => 25,
|
||||
:require => '.',
|
||||
:environment => nil,
|
||||
|
|
|
@ -69,6 +69,7 @@ module Sidekiq
|
|||
'tag' => @options[:tag] || '',
|
||||
'concurrency' => @options[:concurrency],
|
||||
'queues' => @options[:queues].uniq,
|
||||
'labels' => Sidekiq.options[:labels],
|
||||
}
|
||||
Sidekiq.redis do |conn|
|
||||
conn.multi do
|
||||
|
|
|
@ -23,7 +23,12 @@
|
|||
</thead>
|
||||
<% Sidekiq::ProcessSet.new.each_with_index do |process, index| %>
|
||||
<tr>
|
||||
<td><%= "#{process['hostname']}:#{process['pid']}" %></td>
|
||||
<td>
|
||||
<%= "#{process['hostname']}:#{process['pid']}" %>
|
||||
<% process['labels'].each do |label| %>
|
||||
<span class="label label-info"><%= label %></span>
|
||||
<% end %>
|
||||
</td>
|
||||
<td><%= relative_time(Time.at(process['started_at'])) %></td>
|
||||
<td><%= process['concurrency'] %></td>
|
||||
<td><%= process['busy'] %></td>
|
||||
|
|
Loading…
Reference in a new issue