Class: Exceptify::Resque
- Inherits:
-
Resque::Failure::Base
- Object
- Resque::Failure::Base
- Exceptify::Resque
- Defined in:
- lib/exceptify/resque.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.count ⇒ Object
8 9 10 |
# File 'lib/exceptify/resque.rb', line 8 def self.count ::Resque::Stat[:failed] end |
Instance Method Details
#save ⇒ Object
12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/exceptify/resque.rb', line 12 def save data = { error_class: exception.class.name, error_message: exception., failed_at: Time.now.to_s, payload: payload, queue: queue, worker: worker.to_s } Exceptify.notify_exception(exception, data: {resque: data}) end |