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.
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.
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