Skip to content

Commit 877dd8c

Browse files
authored
Update slurmmanager.jl
1 parent 240f71c commit 877dd8c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/slurmmanager.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ end
2121

2222
function get_slurm_ntasks_int()
2323
if haskey(ENV, "SLURM_NTASKS")
24-
ntasks_str = ENV["SLURM_JOB_ID"]
24+
ntasks_str = ENV["SLURM_NTASKS"]
2525
else
2626
msg = "SlurmManager must be constructed inside a Slurm allocation environment." *
27-
"SLURM_JOB_ID or SLURM_JOBID must be defined."
27+
"SLURM_NTASKS must be defined."
2828
error(msg)
2929
end
3030
ntasks_int = parse(Int, ntasks_str)::Int

0 commit comments

Comments
 (0)