Save performing errors to DB

This commit is contained in:
Dzmitry Plashchynski
2015-03-07 18:05:47 +02:00
parent 00e51604ae
commit f43ae4b1b1
3 changed files with 27 additions and 10 deletions

View File

@@ -75,7 +75,6 @@ module Crono
end
def start_working_loop
Thread.abort_on_exception = true
while job = Crono.scheduler.next do
sleep(job.next - Time.now)
job.perform