Class: PeakFlowUtils::NotifierSidekiq
- Inherits:
-
Object
- Object
- PeakFlowUtils::NotifierSidekiq
- Defined in:
- lib/peak_flow_utils/notifier_sidekiq.rb
Class Method Summary collapse
Class Method Details
.configure ⇒ Object
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 |