1
0
Fork 0
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:
Mike Perham 2015-06-10 10:09:56 -07:00
commit 6cc7a3b6a4

View file

@ -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(' ')