Skip to content

Commit f1673b1

Browse files
committed
fix SlurmManager constructor
- Don't overwrite jobid/ntasks variables after we find the proper values. Now either form of slurm_jobid environment variable should work
1 parent 7a43066 commit f1673b1

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
@@ -36,8 +36,8 @@ mutable struct SlurmManager <: ClusterManager
3636
""")
3737
end
3838

39-
jobid = parse(Int, ENV["SLURM_JOBID"])
40-
ntasks = parse(Int, ENV["SLURM_NTASKS"])
39+
jobid = parse(Int, jobid)
40+
ntasks = parse(Int, ntasks)
4141

4242
new(jobid, ntasks, verbose, launch_timeout, srun_post_exit_sleep, nothing)
4343
end

0 commit comments

Comments
 (0)