Skip to content

Commit f980566

Browse files
committed
sbatch should not include env in its submission to make state reproducible
1 parent 5196b04 commit f980566

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

varipeps/utils/slurm.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,11 @@ def run_slurm_script(path, cwd=None):
109109
}
110110

111111
p = subprocess.run(
112-
["sbatch", str(path)], capture_output=True, text=True, cwd=cwd, env=prog_env
112+
["sbatch", "--export=NONE", str(path)],
113+
capture_output=True,
114+
text=True,
115+
cwd=cwd,
116+
env=prog_env,
113117
)
114118

115119
if p.returncode != 0:

0 commit comments

Comments
 (0)