mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
Set procline for easy monitoring with ps aux
This commit is contained in:
parent
bc09ccd477
commit
b2c481bef7
2 changed files with 7 additions and 0 deletions
|
@ -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]
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue