<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hello Moshe,</p>
<p><br>
</p>
<p>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.<br>
</p>
<p><br>
</p>
<p>Best regards,<br>
René Sitt<br>
</p>
<p><br>
</p>
<div class="moz-cite-prefix">Am 10.05.22 um 13:45 schrieb Moshe
Mergy:<br>
</div>
<blockquote type="cite"
cite="mid:d44426f0afda412ebb12e343b9e37791@weizmann.ac.il">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<style type="text/css" style="display:none;">P {margin-top:0;margin-bottom:0;}</style>
<div id="divtagdefaultwrapper"
style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;"
dir="ltr">
<div>Thanks a lot René !</div>
<div>It helps me a lot!</div>
<div><br>
</div>
<div>An additional question about the log messages from <span
style="font-family: Calibri, Helvetica, sans-serif,
EmojiFont, "Apple Color Emoji", "Segoe UI
Emoji", NotoColorEmoji, "Segoe UI Symbol",
"Android Emoji", EmojiSymbols; font-size: 16px;">job_submit.lua</span>: </div>
<div><br>
</div>
<div>With <span>slurm.log_info(), </span>I want to display the
job ID instead of the job name "job_desc.name" in function
slurm_job_submit(),</div>
<div>but I didn't find such a relevant field in the job_desc
type.</div>
<div><br>
</div>
<div>I find some example scripts using "job_ptr.job.id" or
"job_rec.job_id", </div>
<div>but as far as I understand, function slurm_job_submit
can not handle parameters other than (job_desc, part_list,
submit_uid)</div>
<div><br>
</div>
<div>Maybe you have an idea about displaying messages with JOB
ID value via <span style="font-family: Calibri, Helvetica,
sans-serif, EmojiFont, "Apple Color Emoji",
"Segoe UI Emoji", NotoColorEmoji, "Segoe UI
Symbol", "Android Emoji", EmojiSymbols;
font-size: 16px;">slurm_job_submit() ?</span></div>
<div><br>
</div>
<div>Thanks again!</div>
<div>Moshe</div>
<div><br>
</div>
</div>
</blockquote>
<pre class="moz-signature" cols="72">--
Dipl.-Chem. René Sitt
Hessisches Kompetenzzentrum für Hochleistungsrechnen
Philipps-Universität Marburg
Hans-Meerwein-Straße
35032 Marburg
Tel. +49 6421 28 23523
<a class="moz-txt-link-abbreviated" href="mailto:sittr@hrz.uni-marburg.de">sittr@hrz.uni-marburg.de</a>
<a class="moz-txt-link-abbreviated" href="http://www.hkhlr.de">www.hkhlr.de</a></pre>
</body>
</html>