mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
Change UI to reflect busy workers only
This commit is contained in:
parent
06b6aa4d87
commit
fff85c525f
2 changed files with 7 additions and 9 deletions
|
@ -4,6 +4,7 @@
|
|||
- Add 24 hr expiry for basic keys set in Redis, to avoid any possible leaking.
|
||||
- Only register workers in Redis while working, to avoid lingering
|
||||
workers [#156]
|
||||
- Speed up shutdown significantly.
|
||||
|
||||
1.1.3
|
||||
-----------
|
||||
|
|
|
@ -3,13 +3,13 @@
|
|||
h1 Sidekiq is #{current_status}
|
||||
p Processed: #{processed}
|
||||
p Failed: #{failed}
|
||||
p Workers: #{workers.size}
|
||||
p Busy Workers: #{workers.size}
|
||||
p Retries Pending: #{retry_count}
|
||||
|
||||
.tabbable
|
||||
ul.nav.nav-tabs
|
||||
li.active
|
||||
a href="#workers" data-toggle="tab" Workers
|
||||
a href="#workers" data-toggle="tab" Busy Workers
|
||||
li
|
||||
a href="#queues" data-toggle="tab" Queues
|
||||
li
|
||||
|
@ -26,13 +26,10 @@
|
|||
- workers.each do |(worker, msg)|
|
||||
tr
|
||||
td= worker
|
||||
- if msg
|
||||
td= msg['queue']
|
||||
td= msg['payload']['class']
|
||||
td= msg['payload']['args'].inspect[0..100]
|
||||
td== relative_time(Time.parse(msg['run_at']))
|
||||
- else
|
||||
td colspan=4 Idle
|
||||
td= msg['queue']
|
||||
td= msg['payload']['class']
|
||||
td= msg['payload']['args'].inspect[0..100]
|
||||
td== relative_time(Time.parse(msg['run_at']))
|
||||
form action="#{root_path}reset" method="post"
|
||||
button.btn type="submit" Clear worker list
|
||||
|
||||
|
|
Loading…
Reference in a new issue