SlurmExecutor: `no_requeue` has no effect because `--requeue` is hard-coded
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 78/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- python
- Domain
- distributed-systems
Research direction
Start with nemo_run/run/torchx_backend/schedulers/slurm.py at the sbatch command locations cited in the issue, then check nemo_run/run/ray/slurm.py and the dry-run output. Verify how requeue, no_requeue, and SBATCH_NO_REQUEUE are handled across those paths. Done when the default remains requeueable, either opt-out disables it, and the dry run shows consistent submission and script options.
Written by the indexing model from the issue text.
Description
Describe the bug
The Slurm scheduler always runs sbatch --requeue --parsable ... (slurm.py#L180, also #L148, #L253, ray/slurm.py#L591). As a result, neither additional_parameters={"no_requeue": True} nor SBATCH_NO_REQUEUE=1 can turn requeue off.
Steps/Code to reproduce bug
import nemo_run as run
executor = run.SlurmExecutor(
account="my_account",
tunnel=run.LocalTunnel(job_dir="/tmp/nemo_run_repro"),
additional_parameters={"no_requeue": True},
)
run.run(run.Script(inline="echo hello"), executor=executor, dryrun=True)
The dry run shows the job script asks for no requeue, but it is submitted with --requeue:
sbatch --requeue --parsable $SBATCH_SCRIPT
...
#SBATCH --no-requeue
Submitted like this, the job is requeueable (Slurm 24.11: scontrol show job <id> shows Requeue=1), because sbatch's command line overrides #SBATCH lines and SBATCH_* environment variables.
Expected behavior
Requeue stays the default, but no_requeue or SBATCH_NO_REQUEUE=1 turns it off.
Additional context
Possible fix: write requeue as #SBATCH --requeue like the other options (unless the user sets requeue or no_requeue), and drop --requeue from the sbatch commands.
- Dominant language
- Python
- Stars
- 268
- Forks
- 121
- Avg merge
- 3h 42m
- Merged PRs (30d)
- 4
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from NVIDIA-NeMo/Run
-
dgxcloud: cancel() uses GET on the distributed suspend endpoint, and single-node ray jobs are polled under /workloads/trainingsPossibly taken @dundysm claimed this 9 days ago. Opencommunity-request
Difficulty 3/5 Half a day Newbie friendliness 25/100
NVIDIA-NeMo/Run#704 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 25/100
NVIDIA-NeMo/Run#678 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 38/100
NVIDIA-NeMo/Run#665 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 55/100
NVIDIA-NeMo/Run#659 ·
Maintainers usually reply within 1 day
-
Dependency DashboardOpen
Difficulty 4/5 3-5 days Newbie friendliness 20/100
NVIDIA-NeMo/Run#594 · 1 comment ·
Maintainers usually reply within 1 day
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
hermes hooks doctor smoke test never checks the hook exit code — a crashing hook (exit=1) renders ✓ "ran clean" and "All shell hooks look healthy"Possibly taken @cestercian claimed this today. Opencomp/cli P2 type/bug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
NousResearch/hermes-agent#162259 · 1 comment ·
Maintainers usually reply within 1 day
-
bug enhancement
Difficulty 1/5 Under an hour Newbie friendliness 90/100
AOSSIE-Org/PictoPy#1802 · 2 comments ·
Maintainers usually reply within 3 days
-
bot-triaged module: higher order operators module: pickle module: pt2-dispatcher oncall: pt2 triaged
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
pytorch/pytorch#207247 · 1 comment ·
Maintainers usually reply within 1 day
-
backend: claude chore dependencies
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
briandconnelly/amicus#606 ·
Maintainers usually reply within 1 day