SGE: Whats the difference between -hold_jid_ad and -hold_jid
Asked Answered
O

2

6

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.

Obligation answered 26/6, 2014 at 17:6 Comment(0)
C
10

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 and B are both array jobs,
  • A and B has the same range of tasts (i.e. not qsub -t 1-3 A.sh and qsub -t 2-4 B.sh),
  • A[i] depends on B[i], AND
  • A[i] does not depend on B[j] for i != 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.

Cloth answered 5/3, 2015 at 18:20 Comment(1)
in qsub --hold_jid B A.sh is there a way to pass arguments to A.sh?Indefensible
A
0

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.

Atlantes answered 15/7, 2014 at 19:1 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.