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