Skip to content

Commit 89fd00c

Browse files
authored
Merge pull request #537 from JuliaParallel/jps/workers-no-exit-warn
Sch: Halt on Julia exit
2 parents 3ee4091 + 1620b83 commit 89fd00c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Diff for: src/sch/Sch.jl

+5
Original file line numberDiff line numberDiff line change
@@ -515,6 +515,11 @@ function scheduler_init(ctx, state::ComputeState, d::Thunk, options, deps)
515515
end
516516
end
517517

518+
# Halt scheduler on Julia exit
519+
atexit() do
520+
notify(state.halt)
521+
end
522+
518523
# Listen for new workers
519524
@async begin
520525
try

0 commit comments

Comments
 (0)