Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revisionLast revisionBoth sides next revision | ||
doku:job_chains [2014/06/03 13:35] – [Solution I] ir | doku:job_chains [2014/06/05 12:56] – [Solution II] ir | ||
---|---|---|---|
Line 5: | Line 5: | ||
There are several ways how to create job chains and we will discuss three different solutions below: | There are several ways how to create job chains and we will discuss three different solutions below: | ||
==== Solution I ===== | ==== Solution I ===== | ||
- | Create one single job script and list several different jobs inside it. E.g.: | + | Create one single job script, e.g., named // |
< | < | ||
- | user@l01 $ cat allInOne.sge | ||
#$ -N allInOne | #$ -N allInOne | ||
Line 28: | Line 27: | ||
The job identifier may be the **job id** or the **job name**. | The job identifier may be the **job id** or the **job name**. | ||
- | The script of the first job is called holdJob.sge: | + | The script of the first job is called |
< | < | ||
- | user@l01 $ cat holdJob.sge | ||
#$ -N holdJob | #$ -N holdJob | ||
./doJob1 | ./doJob1 | ||
</ | </ | ||
- | The script of the interdependent second job is called Job2.sge: | + | The script of the interdependent second job is called |
< | < | ||
- | user@l01 $ cat Job2.sge | ||
#$ -N Job2 | #$ -N Job2 | ||
#$ -hold_jid holdJob | #$ -hold_jid holdJob | ||
Line 44: | Line 41: | ||
./doJob2 | ./doJob2 | ||
</ | </ | ||
- | ... | + | job submission: |
< | < | ||
user@l01 $ qsub holdJob.sge | user@l01 $ qsub holdJob.sge |