<div dir="ltr"><div>Dear all,</div><div>I am writing to ask you a question. </div><div><br></div><div>Is it possible to retrieve the status of cleared jobs (e.g. after completed with either success or failed) from the Slurm rest interface ?</div><div><br></div><div>When a job (job id=131 in the example below) is cleared, the rest interface returns this after some time after completion:</div><div><br></div><div>{"meta":{"plugin":{"type":"openapi/v0.0.36","name":"REST v0.0.36"},"Slurm":{"version":{"major":20,"micro":7,"minor":11},"release":"20.11.7"}},"errors":[{"error":"_handle_job_get: unknown job 131","error_code":0}],"jobs":[]}<br></div><div><br></div><div> I activated the job status storage in mysql:</div><div><br></div><div>sacct -j 131<br>       JobID    JobName  Partition    Account  AllocCPUS      State ExitCode <br>------------ ---------- ---------- ---------- ---------- ---------- -------- <br>131          testjob.sh     cirasa                     2  COMPLETED      0:0 <br>131.batch         batch                                2  COMPLETED      0:0 <br>131.0          hostname                                2  COMPLETED      0:0 <br>131.1             sleep                                2  COMPLETED      0:0<br></div><div><br></div><div>but the rest service does not seem to pick the status from it. </div><div>Do you have hints?</div><div><br></div><div>Just to understand more:</div><div><br></div><div>- how many seconds the completed job stays available to be queried from squeue or rest API methods? Can this "time-to-live-before-cleanup" be configured, eventually increased a bit? This would be useful to avoid polling the status very frequently. </div><div><br></div><div>- do we have a push mechanism to send job status to external web services, rather than polling it using rest API methods?</div><div><br></div><div>Thanks very much for your help,</div><div><br></div><div>Cheers,</div><div><br></div><div>Simone</div><div><br></div><div>PS: Using Slurm v20.11.7 on Centos 7</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr">****************************************************************<div>Simone Riggi, PhD<br><div><div>INAF, Osservatorio Astrofisico di Catania<br>Via S. Sofia 78<br>95123, Catania - Italy<br>phone:  +39 095 7332 extension 282 (or 310)<br>e-mail: <a href="mailto:simone.riggi@gmail.com" target="_blank">simone.riggi@gmail.com</a>,<div>            <a href="mailto:sriggi@oact.inaf.it" target="_blank">sriggi@inaf.it</a>,<br>            <a href="mailto:simone.riggi@ct.infn.it" target="_blank">sriggi@pec.it</a><br>skype: simone.riggi<br>****************************************************************<br></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>