Sha256: 7efda858d8ab6db5f2a87cddc00b6541a435b4714e362c03eed8e2a13b353754
Contents?: true
Size: 523 Bytes
Versions: 1
Compression:
Stored size: 523 Bytes
Contents
require_relative 'base' module Sidekiq module Cluster module Monitors class DeadChildren < Base def monitor pool.info 'watching for workers that died...' loop do sleep SLEEP_DELAY - 1 pool.workers.each(&:check_worker) break unless pool.operational? "monitor for Dead Children is operational, last logged at #{@last_logged_at}" end pool.info 'leaving Dead Children Monitor' end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sidekiq-cluster-0.1.2 | lib/sidekiq/cluster/monitors/dead_children.rb |