Skip to content

Commit d3e7582

Browse files
Prevent environment propagation when submitting prepare job
Use sbatch --export=NONE to avoid inheriting SLURM_* environment variables from the bot's parent job. This fixes the SLURM_MEM_PER_CPU vs SLURM_MEM_PER_NODE conflict when the bot runs as a Slurm job. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 7ef4a9b commit d3e7582

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/xfer/slackbot/slurm_tools.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,8 +357,9 @@ def submit_transfer(
357357
)
358358

359359
# Submit the prepare job
360+
# Use --export=NONE to prevent inheriting SLURM_* env vars from the bot's job
360361
try:
361-
result = run_cmd(["sbatch", str(prepare_script)], check=True)
362+
result = run_cmd(["sbatch", "--export=NONE", str(prepare_script)], check=True)
362363

363364
# Parse job ID from output
364365
job_id = None

0 commit comments

Comments
 (0)