[slurm-users] Partition dedicated to batch jobs only
René Sitt
sittr at hrz.uni-marburg.de
Tue May 10 12:19:00 UTC 2022
Hello Moshe,
I don't think that's possible (someone else may correct me if I'm
wrong), as in my understanding, the job ID is assigned only after
job_submit.lua has run through. The job_ptr struct (or job_rec for the
lua API) is available for the slurm_job_modify() function but not for
slurm_job_submit(), since it has fields that can only have values after
a successful job submit and resource allocation by the scheduler.
Best regards,
René Sitt
Am 10.05.22 um 13:45 schrieb Moshe Mergy:
> Thanks a lot René !
> It helps me a lot!
>
> An additional question about the log messages from job_submit.lua:
>
> With slurm.log_info(), I want to display the job ID instead of the job
> name "job_desc.name" in function slurm_job_submit(),
> but I didn't find such a relevant field in the job_desc type.
>
> I find some example scripts using "job_ptr.job.id" or "job_rec.job_id",
> but as far as I understand, function slurm_job_submit can not handle
> parameters other than (job_desc, part_list, submit_uid)
>
> Maybe you have an idea about displaying messages with JOB ID value via
> slurm_job_submit() ?
>
> Thanks again!
> Moshe
>
--
Dipl.-Chem. René Sitt
Hessisches Kompetenzzentrum für Hochleistungsrechnen
Philipps-Universität Marburg
Hans-Meerwein-Straße
35032 Marburg
Tel. +49 6421 28 23523
sittr at hrz.uni-marburg.de
www.hkhlr.de
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.schedmd.com/pipermail/slurm-users/attachments/20220510/230599fe/attachment.htm>
More information about the slurm-users
mailing list