Abort on exceptions in workers

This commit is contained in:
Dzmitry Plashchynski
2015-03-05 14:58:17 +02:00
parent db6df90beb
commit 368d9ee0a9
+1
View File
@@ -64,6 +64,7 @@ module Crono
end
def start_working_loop
Thread.abort_on_exception = true
while job = Crono.schedule.next do
sleep(job.next - Time.now)
job.perform