Sha256: 270f11ff922d9e8c80834376d7626949816698ff52a777ea627ce966e9759f21
Contents?: true
Size: 562 Bytes
Versions: 13
Compression:
Stored size: 562 Bytes
Contents
# frozen_string_literal: true module FlowcommerceSpree class FlowIoWorker include Sidekiq::Worker sidekiq_retries_exhausted do |message, exception| Rails.logger.warn("[!] #{self.class} max attempts reached: #{message} - #{exception}") notification_setting = FlowcommerceSpree::Config.notification_setting return unless notification_setting[:slack].present? slack_message = "[#{Rails.env}] #{message}" Slack_client.chat_postMessage(channel: notification_setting[:slack][:channel], text: slack_message) end end end
Version data entries
13 entries across 13 versions & 1 rubygems