[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
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:
The slurm.log_user() function prints an error message to the user's terminal.
I hope this helps.
More information about the slurm-users