Class: Resque::Scheduler::FailureHandler

Inherits:
Object
  • Object
show all
Defined in:
lib/resque/scheduler/failure_handler.rb

Class Method Summary collapse

Class Method Details

.on_enqueue_failure(_, e) ⇒ Object


4
5
6
7
8
# File 'lib/resque/scheduler/failure_handler.rb', line 4

def self.on_enqueue_failure(_, e)
  Resque::Scheduler.log_error(
    "#{e.class.name}: #{e.message} #{e.backtrace.inspect}"
  )
end