Sha256: 1f0dd96c7c24a8deebca9cece513ae6e1026dad439b8ac51b530f6401bf19d2a

Contents?: true

Size: 463 Bytes

Versions: 2

Compression:

Stored size: 463 Bytes

Contents

if defined?(Unicorn::WorkerKiller)
  Unicorn::WorkerKiller.module_eval do
    self.singleton_class.send(:alias_method, :kill_self_old, :kill_self)
    def self.kill_self(logger, start_time)
      @@unicorn_logger ||= ZuoraConnect.custom_logger(name: "UnicornKiller")
      self.kill_self_old( @@unicorn_logger, start_time)
      ZuoraConnect::AppInstance.write_to_telegraf(direction: 'Unicorn-Killer', tags: {app_instance: 0}, values: {kill: 1})
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
zuora_connect-1.7.81r config/initializers/unicorn.rb
zuora_connect-1.7.81q config/initializers/unicorn.rb