[slurm-users] Notify users about job submit plugin actions

Angel de Vicente angel.de.vicente at iac.es
Wed Jul 19 12:37:26 UTC 2023


Hello Lorenzo,

Lorenzo Bosio <lorenzo.bosio at unito.it> writes:

> I'm developing a job submit plugin to check if some conditions are met before a job runs.
> I'd need a way to notify the user about the plugin actions (i.e. why its jobs was killed and what to do), but after a lot of research I could only write to logs and not the user shell.
> The user gets the output of slurm_kill_job but I can't find a way to add a custom note.
>
> Can anyone point me to the right api/function in the code?

In our "job_submit.lua" script we have the following for that purpose:

,----
|           slurm.log_user("%s: WARNING: [...]", log_prefix)
`----

-- 
Ángel de Vicente
 Research Software Engineer (Supercomputing and BigData)
 Tel.: +34 922-605-747
 Web.: http://research.iac.es/proyecto/polmag/

 GPG: 0x8BDC390B69033F52
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5877 bytes
Desc: not available
URL: <http://lists.schedmd.com/pipermail/slurm-users/attachments/20230719/25b5dcd3/attachment.bin>


More information about the slurm-users mailing list