mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
doc 1878
This commit is contained in:
parent
af46cd32d9
commit
a54715d618
5 changed files with 15 additions and 2 deletions
|
@ -1,6 +1,7 @@
|
|||
3.2.2
|
||||
-----------
|
||||
|
||||
- Add process tag (`-g tag`) to the Busy page so you can differentiate processes at a glance. [seuros, #1878]
|
||||
- Add "Kill" button to move retries directly to the DJQ so they don't retry. [seuros, #1867]
|
||||
|
||||
3.2.1
|
||||
|
|
|
@ -601,6 +601,14 @@ module Sidekiq
|
|||
@attribs = hash
|
||||
end
|
||||
|
||||
def tag
|
||||
self['tag']
|
||||
end
|
||||
|
||||
def labels
|
||||
Array(self['labels'])
|
||||
end
|
||||
|
||||
def [](key)
|
||||
@attribs[key]
|
||||
end
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
Myapp::Application.routes.draw do
|
||||
Sidekiq::Web.app_url = '/'
|
||||
mount Sidekiq::Web => '/sidekiq'
|
||||
get "work" => "work#index"
|
||||
get "work/email" => "work#email"
|
||||
|
|
3
myapp/config/sidekiq.yml
Normal file
3
myapp/config/sidekiq.yml
Normal file
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
:labels:
|
||||
- some_label
|
|
@ -24,9 +24,9 @@
|
|||
<% Sidekiq::ProcessSet.new.each do |process| %>
|
||||
<tr>
|
||||
<td>
|
||||
<span class="label label-default"><%= process['tag'] %></span>
|
||||
<%= "#{process['hostname']}:#{process['pid']}" %>
|
||||
<% Array(process['labels']).each do |label| %>
|
||||
<span class="label label-success"><%= process.tag %></span>
|
||||
<% process.labels.each do |label| %>
|
||||
<span class="label label-info"><%= label %></span>
|
||||
<% end %>
|
||||
</td>
|
||||
|
|
Loading…
Add table
Reference in a new issue