Sha256: 0ad588ec83b550fe1a38fc6c60aef28a83bc0c01c084b0c925f507b973460960

Contents?: true

Size: 485 Bytes

Versions: 1

Compression:

Stored size: 485 Bytes

Contents

require 'vizsla/patches'
require 'vizsla/puppet_master'

module Vizsla
  class WorkerProcessMonitor
    class << self
      def start
        sidekiq_health_patch

        self
      end

      def stop!
      end

      def sidekiq_health_patch
        return unless defined? ::Sidekiq

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tracebin-0.0.7 lib/vizsla/worker_process_monitor.rb