[slurm-users] Notify users about job submit plugin actions
Ole Holm Nielsen
Ole.H.Nielsen at fysik.dtu.dk
Wed Jul 19 12:35:10 UTC 2023
Hi Lorenzo,
On 7/19/23 14:22, Lorenzo Bosio wrote:
> 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?
I've written a fairly general job submit plugin which you can copy and
customize for your needs:
https://github.com/OleHolmNielsen/Slurm_tools/tree/master/plugins
The slurm.log_user() function prints an error message to the user's terminal.
I hope this helps.
/Ole
More information about the slurm-users
mailing list