pavan tc <[email protected]> writes:

> Can I get prolog to run after the creation of the job ID but before sbatch
> returns?

Probably not.  Prologs are run when jobs get an allocation, i.e., they
are about to start on some node(s), not when the job is submitted to the queue, 
i.e.,
when you run sbatch.

The job submit plugins are run while sbatch runs, so you might be able
to use them for your purpose.

> I read from the Slurm Prolog and Epilog documentation (
> https://slurm.schedmd.com/prolog_epilog.html) that Alloc forces the Prolog
> script to run on job allocation, but it is not clear to me when the job
> allocation happens.

The allocation happens when Slurm schedules a job to start: Slurm
allocates some resources (nodes, cpus, memory, etc.) to a job and
runs the job on those resources.

> I was assuming this is synonymous to the job ID
> creation (return from sbatch), but looks like this assumption is wrong?

That is right, that is wrong. :)

-- 
Regards,
Bjørn-Helge Mevik, dr. scient,
Department for Research Computing, University of Oslo

Attachment: signature.asc
Description: PGP signature

Reply via email to