Skip to content

Commit 7de132c

Browse files
Merge branch 'develop' of github.com:futureverse/future into develop
2 parents 724361c + 8708e48 commit 7de132c

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

NEWS.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# Version (development version)
22

3-
* ...
3+
## Bug Fixes
4+
5+
* The `cluster` backend failed when used with an `MPIcluster` as
6+
created by `parallel::makeCluster(..., type = "MPI")`. This bug was
7+
introduced in **future** (>= 1.40.0) [2025-04-10].
48

59

610
# Version 1.67.0 [2025-07-29]

R/backend_api-11.ClusterFutureBackend-class.R

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,6 @@ launchFuture.ClusterFutureBackend <- function(backend, future, ...) {
234234

235235
## Does the cluster node communicate with a connection?
236236
## (if not, it's likely via MPI)
237-
stop_if_not(inherits(node, c("SOCK0node", "SOCKnode")))
238237
con <- node[["con"]]
239238
future[["nodeHasConnection"]] <- !is.null(con)
240239

@@ -1469,7 +1468,7 @@ getFutureBackendConfigs.ClusterFuture <- function(future, ..., debug = isTRUE(ge
14691468

14701469
## Does the cluster node communicate with a connection?
14711470
## (if not, it's via MPI)
1472-
if (!future[["nodeHasConnection"]]) return(list())
1471+
if (!isTRUE(future[["nodeHasConnection"]])) return(list())
14731472

14741473
capture <- list(
14751474
immediateConditionHandlers = list(

0 commit comments

Comments
 (0)