Skip to content

Pass JobSpec.name to batch submit templates - #573

Merged
hategan merged 1 commit into
ExaWorks:mainfrom
hat-im:batch-job-name-from-spec
Nov 16, 2026
Merged

hategan merged 1 commit into
ExaWorks:mainfrom
hat-im:batch-job-name-from-spec

Conversation

@hat-im

@hat-im hat-im commented Nov 16, 2026

Copy link
Copy Markdown
Contributor

Fixes #572.

  • Read job.spec.name in the slurm, pbs, pbs_classic, lsf and cobalt submit templates, as the nqsv template does, so each scheduler receives the job's name (--job-name, -N, -J, --jobname).
  • Check the name for every executor in test_submit_script_generation; the check fails for those five executors without this change.
  • Write the name in the batch-test plugin template so the same test covers it.

Note: JobSpec.name falls back to the executable, so unnamed jobs now take the executable path as their name; before, they received no name line. Tell me if you prefer no name when none is set.

The slurm, pbs, pbs_classic, lsf and cobalt templates read job.name, but Job has no name attribute (JobSpec does), so no job name ever reached the scheduler. Read job.spec.name, as the nqsv template already does. test_submit_script_generation now checks the name, and the batch-test template emits it.
@hategan
hategan merged commit 4fbe93b into ExaWorks:main Nov 16, 2026
7 of 13 checks passed
@hat-im
hat-im deleted the batch-job-name-from-spec branch November 16, 2026 20:40
@hat-im hat-im changed the title Pass JobSpec.name to the scheduler in batch submit templates Pass JobSpec.name to batch submit templates Nov 19, 2026
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.

Pass JobSpec.name to the scheduler in batch submit templates

2 participants