Sha256: d95a8b0f82b5423fc3df23cf7fbf9bbb7f33ed8e3c2c6ddbfdf22a6e0f5582fc
Contents?: true
Size: 483 Bytes
Versions: 1
Compression:
Stored size: 483 Bytes
Contents
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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
exception_notification-4.4.0 | lib/exception_notification/resque.rb |