Skip to content

Commit a5b90c1

Browse files
committed
Need to tryCatch() worker cleanup
In case the process has terminated already.
1 parent f7d6b59 commit a5b90c1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

R/parallel.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -361,9 +361,9 @@ queue_teardown <- function(queue) {
361361
error = function(e) NULL
362362
)
363363
if (ps::ps_is_supported()) {
364-
tasks$worker[[i]]$kill_tree()
364+
tryCatch(tasks$worker[[i]]$kill_tree(), error = function(e) NULL)
365365
} else {
366-
tasks$worker[[i]]$kill()
366+
tryCatch(tasks$worker[[i]]$kill(), error = function(e) NULL)
367367
}
368368
}
369369
}

0 commit comments

Comments
 (0)