Class: Tracebin::WorkerProcessMonitor

Inherits:
Object
  • Object
show all
Defined in:
lib/tracebin/worker_process_monitor.rb

Class Method Summary collapse

Class Method Details

.sidekiq_health_patchObject



16
17
18
19
20
21
22
# File 'lib/tracebin/worker_process_monitor.rb', line 16

def sidekiq_health_patch
  return unless defined? ::Sidekiq

  ::Tracebin::Patches.patch_sidekiq_health do |health_data|
    ::Tracebin::PuppetMaster.new(health_data, logger: ::Sidekiq::Logging.logger).process
  end
end

.startObject



7
8
9
10
11
# File 'lib/tracebin/worker_process_monitor.rb', line 7

def start
  sidekiq_health_patch

  self
end

.stop!Object



13
14
# File 'lib/tracebin/worker_process_monitor.rb', line 13

def stop!
end