mirror of
https://github.com/plashchynski/crono.git
synced 2026-04-24 01:38:37 +02:00
Abort on exceptions in workers
This commit is contained in:
@@ -64,6 +64,7 @@ module Crono
|
|||||||
end
|
end
|
||||||
|
|
||||||
def start_working_loop
|
def start_working_loop
|
||||||
|
Thread.abort_on_exception = true
|
||||||
while job = Crono.schedule.next do
|
while job = Crono.schedule.next do
|
||||||
sleep(job.next - Time.now)
|
sleep(job.next - Time.now)
|
||||||
job.perform
|
job.perform
|
||||||
|
|||||||
Reference in New Issue
Block a user