diff --git a/Changes.md b/Changes.md index 999d8100..add03a3f 100644 --- a/Changes.md +++ b/Changes.md @@ -1,6 +1,7 @@ 1.1.1 ----------- +- Set procline for easy monitoring of Sidekiq status via "ps aux" - Fix race condition on shutdown [#134] - Fix hang with cap sidekiq:start [#131] diff --git a/lib/sidekiq/manager.rb b/lib/sidekiq/manager.rb index 08d5bed5..8d291351 100644 --- a/lib/sidekiq/manager.rb +++ b/lib/sidekiq/manager.rb @@ -30,6 +30,7 @@ module Sidekiq @busy = [] @fetcher = Fetcher.new(current_actor, options[:queues]) @ready = @count.times.map { Processor.new_link(current_actor) } + procline end def stop(options={}) @@ -152,5 +153,10 @@ module Sidekiq def stopped? @done end + + def procline + $0 = "sidekiq #{Sidekiq::VERSION} [#{@busy.size} of #{@count} busy]" + after(5) { procline } + end end end