From fff85c525f5f611166399468c127477d66e7a58d Mon Sep 17 00:00:00 2001 From: Mike Perham Date: Tue, 24 Apr 2012 20:12:43 -0700 Subject: [PATCH] Change UI to reflect busy workers only --- Changes.md | 1 + web/views/index.slim | 15 ++++++--------- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/Changes.md b/Changes.md index e3456c02..c8222530 100644 --- a/Changes.md +++ b/Changes.md @@ -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 ----------- diff --git a/web/views/index.slim b/web/views/index.slim index c5c9ff89..d7fc953a 100644 --- a/web/views/index.slim +++ b/web/views/index.slim @@ -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