mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
Merge branch 'master' of github.com:mperham/sidekiq
This commit is contained in:
commit
6cc7a3b6a4
1 changed files with 6 additions and 6 deletions
|
@ -135,15 +135,15 @@ module Sidekiq
|
|||
end
|
||||
|
||||
PROCTITLES = [
|
||||
Proc.new { 'sidekiq'.freeze },
|
||||
Proc.new { Sidekiq::VERSION },
|
||||
Proc.new { |mgr, data| data['tag'] },
|
||||
Proc.new { |mgr, data| "[#{mgr.busy.size} of #{data['concurrency']} busy]" },
|
||||
Proc.new { |mgr, data| "stopping" if mgr.stopped? },
|
||||
proc { 'sidekiq'.freeze },
|
||||
proc { Sidekiq::VERSION },
|
||||
proc { |mgr, data| data['tag'] },
|
||||
proc { |mgr, data| "[#{mgr.busy.size} of #{data['concurrency']} busy]" },
|
||||
proc { |mgr, data| "stopping" if mgr.stopped? },
|
||||
]
|
||||
|
||||
def heartbeat(key, data, json)
|
||||
results = PROCTITLES.map {|x| x.call(self, data) }
|
||||
results = PROCTITLES.map {|x| x.(self, data) }
|
||||
results.compact!
|
||||
$0 = results.join(' ')
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue