Class: PeakFlowUtils::NotifierSidekiq

Inherits:
Object
  • Object
show all
Defined in:
lib/peak_flow_utils/notifier_sidekiq.rb

Class Method Summary collapse

Class Method Details

.configureObject



2
3
4
5
6
7
8
9
10
# File 'lib/peak_flow_utils/notifier_sidekiq.rb', line 2

def self.configure
  require "sidekiq"

  Sidekiq.configure_server do |config|
    config.error_handlers << proc do |error, _context|
      PeakFlowUtils::Notifier.notify(error: error)
    end
  end
end