Class: Resque::Failure::ExceptionNotification

Inherits:
Base
  • Object
show all
Defined in:
lib/resque/failure/exception_notification.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.countObject



11
12
13
# File 'lib/resque/failure/exception_notification.rb', line 11

def self.count
  Stat[:failed]
end

Instance Method Details

#saveObject



15
16
17
18
19
20
21
22
23
24
# File 'lib/resque/failure/exception_notification.rb', line 15

def save
  message = {
    :worker => worker.to_s,
    :queue  => queue.to_s,
    :job    => payload['class'].to_s,
    :args   => payload['args'].inspect
  }

  ExceptionNotifier::Notifier.background_exception_notification(exception, :data => message).deliver
end