Skip to content

Commit

Permalink
fix: check for crashed workers
Browse files Browse the repository at this point in the history
  • Loading branch information
be-marc committed Jun 12, 2024
1 parent 3f8654a commit 2ff79e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/OptimizerAsync.R
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ optimize_async_default = function(instance, optimizer, design = NULL, n_workers
lg$info(capture.output(print(new_results, class = FALSE, row.names = FALSE, print.keys = FALSE)))
}

if (instance$rush$all_workers_lost) {
if (instance$rush$all_workers_lost && !instance$is_terminated && !instance$rush$all_workers_terminated) {
stop("All workers have crashed.")
}

Expand Down

0 comments on commit 2ff79e1

Please sign in to comment.