Discussion:
Logical-OR dependencies in SBATCH
Ben Roberts
2014-09-11 03:29:30 UTC
Permalink
Hi all,

I’m hoping someone can help me. A researcher I work with would like to use logical-OR dependencies in his job submission scripts, so that one of these could be done:

#SBATCH --dependency=[run if either job 10000001 or job 10000002 finished OK]
#SBATCH --dependency=[run if either job 10000001 finished OK or job 10000002 finished not OK]

As far as I can tell, Slurm’s dependencies are all logical-AND based. Is there any way to do these logical-OR dependencies?

Thanks,
Ben

PS. Apologies if this question is already answered on the list: I can’t seem to access the list archives for some reason. =
j***@public.gmane.org
2014-09-11 15:15:34 UTC
Permalink
Slurm job dependencies are all AND-based. It wouldn't be very
difficult to add OR-based logic, but that does not exist today.
Post by Ben Roberts
Hi all,
I’m hoping someone can help me. A researcher I work with would like
to use logical-OR dependencies in his job submission scripts, so
#SBATCH --dependency=[run if either job 10000001 or job 10000002 finished OK]
#SBATCH --dependency=[run if either job 10000001 finished OK or job
10000002 finished not OK]
As far as I can tell, Slurm’s dependencies are all logical-AND
based. Is there any way to do these logical-OR dependencies?
Thanks,
Ben
PS. Apologies if this question is already answered on the list: I
can’t seem to access the list archives for some reason. =
--
Morris "Moe" Jette
CTO, SchedMD LLC

Slurm User Group Meeting
September 23-24, Lugano, Switzerland
Find out more http://slurm.schedmd.com/slurm_ug_agenda.html
Ben Roberts
2014-09-11 21:11:36 UTC
Permalink
Hi Morris,

Thanks for your prompt response. As it happens, the researcher and I have found another solution to his problem, so there’s no longer any urgency from our end.

Best regards,
Ben
Slurm job dependencies are all AND-based. It wouldn't be very difficult to add OR-based logic, but that does not exist today.
Post by Ben Roberts
Hi all,
#SBATCH --dependency=[run if either job 10000001 or job 10000002 finished OK]
#SBATCH --dependency=[run if either job 10000001 finished OK or job 10000002 finished not OK]
As far as I can tell, Slurm’s dependencies are all logical-AND based. Is there any way to do these logical-OR dependencies?
Thanks,
Ben
PS. Apologies if this question is already answered on the list: I can’t seem to access the list archives for some reason. =
--
Morris "Moe" Jette
CTO, SchedMD LLC
Slurm User Group Meeting
September 23-24, Lugano, Switzerland
Find out more http://slurm.schedmd.com/slurm_ug_agenda.html
Loading...