You might use a job submission plugin, but in this case, you have to be aware of the fact that the job can still rejected by slurm after the plugin was involved.
Another idea might be to wrap sbatch. Maybe there is a much better way. I'm really not sure. Could you provide a few details about what you are going to do? 2017-01-31 15:52 GMT+01:00 Malte Thoma <[email protected]>: > > I guess this is a simple question, but I have not found an answer yet: > We would like to run a script just after sbatch was launched. > We are aware of PrologSlurmctld=<file> and Prolog=<file> in slurm.conf, but > AFAIK these are executed when the job is allocated and there might be > several hours between submission and allocation, right? So is there a way to > execute a script (knowing the SLUM environment variables) when sbatch > submits a job? > Regards, > Malte
