Class: Rufus::Scheduler::SchedulerCore

Inherits:
Object
  • Object
show all
Defined in:
lib/bluth/worker.rb

Instance Method Summary collapse

Instance Method Details

#handle_exception(task, exception) ⇒ Object

See lib/rufus/sc/scheduler.rb



8
9
10
11
12
13
14
15
16
17
# File 'lib/bluth/worker.rb', line 8

def handle_exception(task, exception)
  case exception
  when SystemExit
    exit
  else
    Familia.info exception.message
    Familia.info exception.backtrace
    task.unschedule
  end
end