Class: ResqueAdmin::Scheduler::FailureHandler

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

Class Method Summary collapse

Class Method Details

.on_enqueue_failure(_, e) ⇒ Object



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

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