mirror of
https://github.com/plashchynski/crono.git
synced 2026-03-17 23:14:14 +01:00
Abort on exceptions in workers
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user