How to detect if a worker process has crashed? #108
-
What happens if a worker crashes, i.e. the R process abruptly terminates? Will there be a timeout somewhere? For example, library(mirai)
daemons(2L, dispatcher = FALSE)
m <- mirai({ tools::pskill(pid = Sys.getpid()) })
unresolved(m)
#> [1] TRUE Now, calling: call_mirai(m) hangs because there's no response. However, will this eventually timeout, or will it wait forever? Is it possible to detect that the underlying worker for this FYI, it also looks like |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
For non-dispatcher daemons, you probably want: daemons(2L, dispatcher = FALSE, resilience = FALSE) in which case 'm' resolves to an errorValue 19. For interruptible call_mirai, use |
Beta Was this translation helpful? Give feedback.
For non-dispatcher daemons, you probably want:
in which case 'm' resolves to an errorValue 19.
For interruptible call_mirai, use
call_mirai_()
.