[slurm-users] Re: Job pre / post submit scripts

2024-10-29 Thread Bhaskar Chakraborty via slurm-users
Thanks for the help. Shall try to check the client plugin option 1st else have to revert to the other alternative which, though more of a workaround, also looks good & promising. -Bhaskar. On Tuesday 29 October, 2024 at 06:49:12 am IST, Christopher Samuel via slurm-users wrote: On 10/

[slurm-users] Re: Job pre / post submit scripts

2024-10-29 Thread Di Bernardini, Fabio via slurm-users
Have you already seen if SrunProlog or TaskProlog could be useful for your case? The documentation is here: https://slurm.schedmd.com/prolog_epilog.html -- Fabio From: Bhaskar Chakraborty via slurm-users Sent: Monday, October 28, 2024 6:56 PM To: slurm-us...@schedmd.com Subject: [EXTERNAL] [slur

[slurm-users] Re: Job pre / post submit scripts

2024-10-28 Thread Christopher Samuel via slurm-users
On 10/28/24 10:56 am, Bhaskar Chakraborty via slurm-users wrote: Is there an option in slurm to launch a custom script at the time of job submission through sbatch or salloc? The script should run with submit user permission in submit area. I think you are after the cli_filter functionality w

[slurm-users] Re: Job pre / post submit scripts

2024-10-28 Thread Davide DelVento via slurm-users
Not sure if I understand your use case, but if I do I am not sure if Slurm provides that functionality. If it doesn't (and if my understanding is correct), you can still achieve your goal by: 1) removing sbatch and salloc from user's path 2) writing your own custom scripts named sbatch (and hard/s