On Sun, Jul 2, 2017 at 3:20 AM, Bjørn-Helge Mevik <[email protected]> wrote:
> 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. > That seems very capable. [Greedy-mode] It would have been great if I didn't have to rebuild/re-deploy - like specifying a script to sbatch which it would run post job-ID creation or some such. However, it is immensely useful - this information about job submit plugins. Will take a look. Thanks a ton, Bjorn! > > 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 >
