mirror of
https://github.com/plashchynski/crono.git
synced 2026-11-16 21:51:06 +01:00
Abort on exceptions in workers
This commit is contained in:
1 parent
db6df90beb
commit
368d9ee0a9
1 file changed
+1
@@ -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