User Tools

Site Tools


job_dependeny

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
job_dependeny [2017/10/20 11:12]
meesters [Unsatisfiable Dependencies]
job_dependeny [2018/10/23 07:40]
meesters [Example in Bash]
Line 43: Line 43:
 # a single job can depend on multiple jobs # a single job can depend on multiple jobs
 jid4=$(sbatch ​ -p short -A <your account> --dependency=afterany:​${jid2##​* }:${jid3##* } job4.script) jid4=$(sbatch ​ -p short -A <your account> --dependency=afterany:​${jid2##​* }:${jid3##* } job4.script)
- 
-# swarm can use dependencies 
-jid5=$(sbatch -p short -A <your account> --ntasks 12 --dependency=afterany:​${jid4##​* } ../​taskfarm/​taskfarm job5.script) 
  
 # a single job can depend on an array job # a single job can depend on an array job
 # it will start executing when all arrayjobs have fin.scripted # it will start executing when all arrayjobs have fin.scripted
-jid6=$(sbatch -p short -A <your account> --dependency=afterany:​${jid5##* } job6.script)+jid5=$(sbatch -p short -A <your account> --dependency=afterany:​${jid4##* } job5.script)
  
 # a single job can depend on all jobs by the same user with the same name # a single job can depend on all jobs by the same user with the same name
-jid7=$(sbatch -p short -A <your account> --dependency=afterany:​${jid6##* } --job-name=dtest ​job7.script) +jid6=$(sbatch -p short -A <your account> --dependency=afterany:​${jid5##* } --job-name=dtest ​job6.script) 
-jid8=$(sbatch -p short -A <your account> --dependency=afterany:​${jid6##* } --job-name=dtest ​job8.script) +jid7=$(sbatch -p short -A <your account> --dependency=afterany:​${jid5##* } --job-name=dtest ​job7.script) 
-sbatch -p short -A <your account> --dependency=singleton --job-name=dtest ​job9.script+sbatch -p short -A <your account> --dependency=singleton --job-name=dtest ​job8.script
  
 #show dependencies in squeue output: #show dependencies in squeue output:
job_dependeny.txt · Last modified: 2018/10/23 07:40 by meesters