Skip to content

Commit 2124a03

Browse files
BUG FIX: availableWorkers() did not consider 'SLURM_NODELIST' as claimed
1 parent 0f0285b commit 2124a03

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Package: parallelly
2-
Version: 1.46.1-9018
2+
Version: 1.46.1-9019
33
Title: Enhancing the 'parallel' Package
44
Imports:
55
parallel,

NEWS.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@
1818
would become `c("n09", "n010")` whereas it should be `c("n09",
1919
"n10")`.
2020

21+
* `availableWorkers(method = "Slurm")` did not, as documented, fall
22+
back to legacy environment variable `SLURM_NODELIST` when
23+
`SLURM_JOB_NODELIST` is not set
24+
2125

2226
# Version 1.46.1 [2026-01-07]
2327

R/availableWorkers.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -719,7 +719,7 @@ availableWorkersSlurm <- function() {
719719
## Example:
720720
## SLURM_JOB_NODELIST=n1,n[3-8],n[23-25]
721721
nodelist <- getenv_chr("SLURM_JOB_NODELIST")
722-
if (is.na(nodelist)) data <- getenv_chr("SLURM_NODELIST")
722+
if (is.na(nodelist)) nodelist <- getenv_chr("SLURM_NODELIST")
723723
if (is.na(nodelist)) return(NA_character_)
724724

725725
## Parse and expand nodelist

0 commit comments

Comments
 (0)