We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d801d65 commit f7d6b59Copy full SHA for f7d6b59
R/parallel.R
@@ -320,7 +320,9 @@ queue_teardown <- function(queue) {
320
321
topoll <- list()
322
for (i in seq_len(num)) {
323
- if (!is.null(tasks$worker[[i]])) {
+ if (
324
+ !is.null(tasks$worker[[i]]) && tasks$worker[[i]]$get_state() == "idle"
325
+ ) {
326
# The worker might have crashed or exited, so this might fail.
327
# If it does then we'll just ignore that worker
328
tryCatch(
0 commit comments