Sha256: ebaf56adc0f285b4ee4958d33e9dcad3f4de058f06ad69fffd1203eb4af6994d

Contents?: true

Size: 260 Bytes

Versions: 9

Compression:

Stored size: 260 Bytes

Contents

class PeakFlowUtils::NotifierSidekiq
  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
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
peak_flow_utils-0.1.19 lib/peak_flow_utils/notifier_sidekiq.rb
peak_flow_utils-0.1.18 lib/peak_flow_utils/notifier_sidekiq.rb
peak_flow_utils-0.1.17 lib/peak_flow_utils/notifier_sidekiq.rb
peak_flow_utils-0.1.16 lib/peak_flow_utils/notifier_sidekiq.rb
peak_flow_utils-0.1.15 lib/peak_flow_utils/notifier_sidekiq.rb
peak_flow_utils-0.1.14 lib/peak_flow_utils/notifier_sidekiq.rb
peak_flow_utils-0.1.13 lib/peak_flow_utils/notifier_sidekiq.rb
peak_flow_utils-0.1.12 lib/peak_flow_utils/notifier_sidekiq.rb
peak_flow_utils-0.1.11 lib/peak_flow_utils/notifier_sidekiq.rb