Skip to content

Add forknode method for isNodeAlive #137

@ralmond

Description

@ralmond

(Please use https://github.com/HenrikBengtsson/future/discussions for Q&A)

Wish or feature request

isNodeAlive() currently returns NA no matter the state of the cluster, which is forkin' useless.

Suggest adding a method for SOCK0node which checks the connection status.

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

See #136

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions