Skip to content

Adding isNodeAlive.SOCK0node#136

Open
ralmond wants to merge 1 commit intofutureverse:developfrom
ralmond:ralmond-isNodeAlive-patch-1
Open

Adding isNodeAlive.SOCK0node#136
ralmond wants to merge 1 commit intofutureverse:developfrom
ralmond:ralmond-isNodeAlive-patch-1

Conversation

@ralmond
Copy link

@ralmond ralmond commented Oct 10, 2025

Adds a method for forknodes/SOCK0nodes.

Currently, isNodeAlive for forked nodes returns NA, which is forkin' useless. This adds a check for whether or not the connection is active.

> ccc <- makeForkCluster(2)
> isNodeAlive.SOCK0node <- function (x, ...) isConnectionValid(x$con)
> isNodeAlive(ccc)
[1] TRUE TRUE
> stopCluster(ccc)
> isNodeAlive(ccc)
[1] FALSE FALSE
> 

Seems to do what I need it to do.

Adds a method for forknodes/SOCK0nodes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant