Skip to content

Commit

Permalink
Change UI to reflect busy workers only
Browse files Browse the repository at this point in the history
  • Loading branch information
mperham committed Apr 25, 2012
1 parent 06b6aa4 commit fff85c5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
1 change: 1 addition & 0 deletions Changes.md
Expand Up @@ -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
-----------
Expand Down
15 changes: 6 additions & 9 deletions web/views/index.slim
Expand Up @@ -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
Expand All @@ -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

Expand Down

0 comments on commit fff85c5

Please sign in to comment.