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

2023-07-20 Thread Ole Holm Nielsen
Hi Lorenzo, On 7/20/23 12:16, Lorenzo Bosio wrote: > One more thing I'd like to point out, is that I need to monitor jobs going > from pending to running state (after waiting in the jobs queue). I > currently have a separate pthread to achieve this, but I think at this > point the job_submit()/

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

2023-07-20 Thread Lorenzo Bosio
Hello everyone, thanks for all the answers. To elaborate further: I'm developing in C, but that's not a problem since I can find an equivalent to LUA as Jeffrey T Frey said. One more thing I'd like to point out, is that I need to monitor jobs going from pending to running state (after waiting

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

2023-07-19 Thread Jeffrey T Frey
In case you're developing the plugin in C and not LUA, behind the scenes the LUA mechanism is concatenating all log_user() strings into a single variable (user_msg). When the LUA code completes, the C code sets the *err_msg argument to the job_submit()/job_modify() function to that string, then

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

2023-07-19 Thread Angel de Vicente
Hello Lorenzo, Lorenzo Bosio 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 >

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

2023-07-19 Thread Ole Holm Nielsen
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

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

2023-07-19 Thread Lorenzo Bosio
Hello everyone, 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