class ExceptionNotification::Resque
Public Class Methods
Source
# File lib/exception_notification/resque.rb, line 7 def self.count ::Resque::Stat[:failed] end
Public Instance Methods
Source
# File lib/exception_notification/resque.rb, line 11 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