Ticket 14216 - Allow to use job array id with srun command
Summary: Allow to use job array id with srun command
Status: RESOLVED FIXED
Alias: None
Product: Slurm
Classification: Unclassified
Component: User Commands (show other tickets)
Version: 21.08.8
Hardware: Linux Linux
: 5 - Enhancement
Assignee: Oscar Hernández
QA Contact:
URL:
Depends on:
Blocks:
 
Reported: 2022-06-01 08:21 MDT by IDRIS System Team
Modified: 2023-01-31 03:42 MST (History)
1 user (show)

See Also:
Site: GENCI - Grand Equipement National de Calcul Intensif
Slinky Site: ---
Alineos Sites: ---
Atos/Eviden Sites: ---
Confidential Site: ---
Coreweave sites: ---
Cray Sites: ---
DS9 clusters: ---
Google sites: ---
HPCnow Sites: ---
HPE Sites: ---
IBM Sites: ---
NOAA SIte: ---
NoveTech Sites: ---
Nvidia HWinf-CS Sites: ---
OCF Sites: ---
Recursion Pharma Sites: ---
SFW Sites: ---
SNIC sites: ---
Tzag Elita Sites: ---
Linux Distro: ---
Machine Name:
CLE Version:
Version Fixed: 23.02.0pre1
Target Release: ---
DevPrio: ---
Emory-Cloud Sites: ---


Attachments

Note You need to log in before you can comment on or make changes to this ticket.
Description IDRIS System Team 2022-06-01 08:21:31 MDT
Hello,

We have noticed that the "--jobid" option of the "srun" command does not allow using job id formatted as "jobArrayID_jobArrayIndex" although it is shown this way by default by the "squeue" command.

This means that one has to use either the "scontrol show job" command or specific "squeue" option to convert the "job array format" to the integer job id.

It would be a great addition if the "job array format" could be accepted by "srun --jobid".

Best regards.
Comment 2 Jason Booth 2022-06-24 12:15:53 MDT
Thank you for this request for enhancement. This does have merit, though I can not promise a resolution or release version at this time. We will discuss this internally and let you know what we decide regarding this request.
Comment 14 Oscar Hernández 2023-01-31 03:42:24 MST
Hi,

Just wanted to let you know that we allocated some resources to develop the suggested feature. It has been already checked in and will be available upon next 23.02.0rc1 release!

commit 4a51e3a975f63afc1d48691d55dcdd7f3be91fc3
Author:     Oscar Hernández <oscar.hernandez@schedmd.com>
AuthorDate: Thu Jan 26 17:57:29 2023 +0100

    Allow "srun --jobid" to work with job array ids.
    
    E.g., now supports "srun --jobid=12_1" without issue.
    
    Bug 14216

commit f42bb1b727a4889635ade0d06b8ab9204198eeee
Author:     Oscar Hernández <oscar.hernandez@schedmd.com>
AuthorDate: Thu Jan 26 13:25:59 2023 -0700

    Add jobid to job_step_create_response_msg_t.
    
    For job array tasks the underlying jobid will be needed for further srun
    communication with the slurmd as part of the launch.

commit c163d4c3fa50f6e834bc4d15ee0e2b871a743656
Author:     Oscar Hernández <oscar.hernandez@schedmd.com>
AuthorDate: Thu Jan 26 13:24:40 2023 -0700

    Add array_task_id to job_step_create_request_msg_t.
    
    Set to NO_VAL when unpacking from older clients to avoid issues with
    backwards compatibility.

Thanks for your feedback,

Oscar