Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revisionBoth sides next revision
doku:job_chains [2014/06/03 13:35] – [Solution I] irdoku: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 //allInOne.sge// and list several different jobs inside it:
 <code> <code>
-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 //holdJob.sge//:
  
 <code> <code>
-user@l01 $ cat holdJob.sge 
 #$ -N holdJob #$ -N holdJob
  
 ./doJob1 ./doJob1
 </code> </code>
-The script of the interdependent second job is called Job2.sge:+The script of the interdependent second job is called //Job2.sge//:
 <code> <code>
-user@l01 $ cat Job2.sge 
 #$ -N Job2 #$ -N Job2
 #$ -hold_jid holdJob #$ -hold_jid holdJob
Line 44: Line 41:
 ./doJob2 ./doJob2
 </code> </code>
-...+job submission:
 <code> <code>
 user@l01 $ qsub holdJob.sge user@l01 $ qsub holdJob.sge