Class: Resque::Failure::ExceptionNotification
- Inherits:
-
Base
- Object
- Base
- Resque::Failure::ExceptionNotification
- Defined in:
- lib/resque/failure/exception_notification.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.count ⇒ Object
11 12 13 |
# File 'lib/resque/failure/exception_notification.rb', line 11 def self.count Stat[:failed] end |
Instance Method Details
#save ⇒ Object
15 16 17 18 19 20 21 22 23 24 |
# File 'lib/resque/failure/exception_notification.rb', line 15 def save = { :worker => worker.to_s, :queue => queue.to_s, :job => payload['class'].to_s, :args => payload['args'].inspect } ExceptionNotifier::Notifier.background_exception_notification(exception, :data => ).deliver end |