SlurmExecutor: `no_requeue` has no effect because `--requeue` is hard-coded
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 78/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- python
调研方向
从 issue 中引用的 nemo_run/run/torchx_backend/schedulers/slurm.py 里 sbatch 命令的位置开始,然后检查 nemo_run/run/ray/slurm.py 和 dry-run 输出。验证这些路径如何处理 requeue、no_requeue 和 SBATCH_NO_REQUEUE。完成标准是:默认仍允许 requeue,任一退出选项都会将其禁用,并且 dry run 显示一致的提交选项和脚本选项。
由索引模型根据 Issue 内容生成。
描述
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.
- 主要语言
- Python
- 星标
- 268
- 派生
- 121
- 平均合并
- 3 小时 42 分钟
- 30 天内合并 PR
- 4
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
NVIDIA-NeMo/Run 的其他 Issue
-
dgxcloud: cancel() uses GET on the distributed suspend endpoint, and single-node ray jobs are polled under /workloads/trainings可能已有人在做 @dundysm 于 9 天前认领。 未关闭community-request
难度 3/5 半天 新手友好度 25/100
NVIDIA-NeMo/Run#704 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 25/100
NVIDIA-NeMo/Run#678 ·
维护者通常 1 天内回复
-
bug
难度 4/5 3-5 天 新手友好度 38/100
NVIDIA-NeMo/Run#665 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 55/100
NVIDIA-NeMo/Run#659 ·
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 20/100
NVIDIA-NeMo/Run#594 · 1 条评论 ·
维护者通常 1 天内回复
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
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"可能已有人在做 @cestercian 今天认领。 未关闭comp/cli P2 type/bug
难度 2/5 1-3 小时 新手友好度 75/100
NousResearch/hermes-agent#162259 · 1 条评论 ·
维护者通常 1 天内回复
-
bug enhancement
难度 1/5 1 小时以内 新手友好度 90/100
AOSSIE-Org/PictoPy#1802 · 2 条评论 ·
维护者通常 3 天内回复
-
bot-triaged module: higher order operators module: pickle module: pt2-dispatcher oncall: pt2 triaged
难度 2/5 1-3 小时 新手友好度 75/100
pytorch/pytorch#207247 · 1 条评论 ·
维护者通常 1 天内回复
-
backend: claude chore dependencies
难度 2/5 1-3 小时 新手友好度 72/100
briandconnelly/amicus#606 ·
维护者通常 1 天内回复