Skip to content

fix: avoid 'None' prefix in SlurmExecutor job names#565

Open
andrewwhitecdw wants to merge 1 commit into
NVIDIA-NeMo:mainfrom
andrewwhitecdw:andrewwhitecdw/fix/slurm-none-job-name-prefix
Open

fix: avoid 'None' prefix in SlurmExecutor job names#565
andrewwhitecdw wants to merge 1 commit into
NVIDIA-NeMo:mainfrom
andrewwhitecdw:andrewwhitecdw/fix/slurm-none-job-name-prefix

Conversation

@andrewwhitecdw

Copy link
Copy Markdown

Bug\nSlurmExecutor.job_name_prefix defaults to None, so the alloc() and srun() f-strings produced job names like Noneinteractive.\n\n## Fix\nUse self.job_name_prefix or '' in both methods, matching the existing handling elsewhere in the file (lines 825–830 and 980).\n\n## Test\nAdded test/core/execution/test_slurm_job_name.py with regression tests for both alloc() and srun(), covering the unset-prefix and set-prefix cases.\n\n## Verification\nuv run pytest test/core/execution/test_slurm_job_name.py -v passes.\nuv run --group lint ruff check ... and ruff format --check ... pass.

SlurmExecutor.job_name_prefix defaults to None, so f-strings in alloc() and

srun() produced job names like 'Noneinteractive'. Use  so the prefix

is omitted when unset, matching the existing handling in other methods.

Adds regression tests for both alloc() and srun().

Signed-off-by: Andrew White <andrewh@cdw.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant