When qsub
-ing a job I want one job to wait to execute until the first one has succeeded. I've been looking at the options -hold_jid_ad
and -hold_jid
to do this, but can't see a difference in them.
SGE: Whats the difference between -hold_jid_ad and -hold_jid
Asked Answered
Lets say you have jobs A
and B
, and A
depends on B
. That is you want to run something like qsub --hold_jid[_ad] B A.sh
--hold_jid_ad
This is for array jobs only. Use it if:
A
andB
are both array jobs,A
andB
has the same range of tasts (i.e. notqsub -t 1-3 A.sh
andqsub -t 2-4 B.sh
),A[i]
depends onB[i]
, ANDA[i]
does not depend onB[j]
fori != j
--hold_jid
Use this is any other situation. When in doubt use this.
This is based on a diff the documentation and a few tries on our engine.
Difference in man page is subtle. It appears that -hold_jid_ad
is for job array, whereas -hold_jid
is for a regular job type.
© 2022 - 2024 — McMap. All rights reserved.
qsub --hold_jid B A.sh
is there a way to pass arguments toA.sh
? – Indefensible