Skip to content

Commit

Permalink
parallel: exit parent when no workers left, even if revive
Browse files Browse the repository at this point in the history
  • Loading branch information
yasunariw committed Oct 20, 2024
1 parent dd681b2 commit bfd0f55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parallel.ml
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ let run_forks_simple ?(revive=false) ?wait_stop f args =
let rec loop pause =
Nix.sleep pause;
let total = Hashtbl.length workers in
if total = 0 && not revive then
if total = 0 then
log #info "All workers dead, stopping"
else
match Daemon.should_exit () with
Expand Down

0 comments on commit bfd0f55

Please sign in to comment.