There's always the --dependency flag for sbatch. So yes, depending on what
you wanted, you could line up another sbatch after the first if you liked.

cheers
L.

------
The most dangerous phrase in the language is, "We've always done it this
way."

- Grace Hopper

On 1 February 2017 at 08:38, TO_Webmaster <luftha...@gmail.com> wrote:

>
> 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 <malte.th...@awi.de>:
> >
> > 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
>

Reply via email to