Skip to content

Commit c50851d

Browse files
availableWorkers(): fix confusing warning message when Slurm env var held unexpected values (rare)
1 parent 9aaeb4c commit c50851d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/availableWorkers.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -754,7 +754,7 @@ availableWorkersSlurm <- function() {
754754
## Is our assumption that SLURM_CPUS_PER_TASK <= SLURM_JOB_NODELIST, correct?
755755
if (any(c0 < n)) {
756756
c <- pmin(c0, n)
757-
warnf("Unexpected values of Slurm environment variable. 'SLURM_CPUS_PER_TASK' specifies CPU counts on one or more nodes that is strictly less than what 'SLURM_CPUS_PER_TASK' specifies. Will use the minimum of the two for each node: %s < %s", sQuote(nodecounts), n)
757+
warnf("Unexpected values of Slurm environment variable. The Slurm environment variables specify CPU counts on one or more nodes that is strictly less than what 'SLURM_CPUS_PER_TASK' specifies. Will use the minimum of the two for each node: %s < %s", sQuote(nodecounts), n)
758758
}
759759
}
760760

0 commit comments

Comments
 (0)