Sha256: 573356fa95e36d103a5ea31d0b785619ac5b59b30591d21c47ec4f79c4d6b9e8

Contents?: true

Size: 495 Bytes

Versions: 6

Compression:

Stored size: 495 Bytes

Contents

require 'tracebin/patches'
require 'tracebin/puppet_master'

module Tracebin
  class WorkerProcessMonitor
    class << self
      def start
        sidekiq_health_patch

        self
      end

      def stop!
      end

      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
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
tracebin-0.0.13 lib/tracebin/worker_process_monitor.rb
tracebin-0.0.12 lib/tracebin/worker_process_monitor.rb
tracebin-0.0.11 lib/tracebin/worker_process_monitor.rb
tracebin-0.0.10 lib/tracebin/worker_process_monitor.rb
tracebin-0.0.9 lib/tracebin/worker_process_monitor.rb
tracebin-0.0.8 lib/tracebin/worker_process_monitor.rb