1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00
This commit is contained in:
Mike Perham 2014-08-06 09:41:46 -07:00
parent af46cd32d9
commit a54715d618
5 changed files with 15 additions and 2 deletions
Changes.md
lib/sidekiq
myapp/config
web/views

View file

@ -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

View file

@ -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

View file

@ -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
View file

@ -0,0 +1,3 @@
---
:labels:
- some_label

View file

@ -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>