Sha256: a6565d2e22a52ddb2c13b507865198730168fe3c0c7d1beaf8c98940d8be1b94
Contents?: true
Size: 514 Bytes
Versions: 3
Compression:
Stored size: 514 Bytes
Contents
# frozen_string_literal: true require 'resque/failure/base' module ExceptionNotification class Resque < Resque::Failure::Base def self.count ::Resque::Stat[:failed] end def save data = { error_class: exception.class.name, error_message: exception.message, failed_at: Time.now.to_s, payload: payload, queue: queue, worker: worker.to_s } ExceptionNotifier.notify_exception(exception, data: { resque: data }) end end end
Version data entries
3 entries across 3 versions & 1 rubygems