diff --git a/src/sch/Sch.jl b/src/sch/Sch.jl index cfb680bbd..54c8eab96 100644 --- a/src/sch/Sch.jl +++ b/src/sch/Sch.jl @@ -515,6 +515,11 @@ function scheduler_init(ctx, state::ComputeState, d::Thunk, options, deps) end end + # Halt scheduler on Julia exit + atexit() do + notify(state.halt) + end + # Listen for new workers @async begin try