작업 종료 후에 다음 작업을 순차적으로 진행 할 때 사용
- 작업1이 종료될 때까지 작업2와 작업3은 hqw 상태로 되어 있다.
- 작업1이 종료되면 작업2가 실행이 되고 작업3은 hqw 상태로 된다.
- 작업2가 종료되면 작업3이 실행된다.
$ vi dependent1_isbyeon.sh
#!/bin/bash
## Usage : qsub dependent1_isbyeon.sh
#$ -S /bin/bash
#$ -V
#$ -cwd
#$ -q all.q
sleep 100
echo "Dependent Jobs01"
$ vi dependent2_isbyeon.sh
#!/bin/bash
## Usage : qsub dependent2_isbyeon.sh
#$ -S /bin/bash
#$ -V
#$ -cwd
#$ -q all.q
sleep 100
echo "Dependent Jobs02"
$ vi dependent3_isbyeon.sh
#!/bin/bash
## Usage : qsub dependent3_isbyeon.sh
#$ -S /bin/bash
#$ -V
#$ -cwd
#$ -q all.q
sleep 100
echo "Dependent Jobs03"
$ qsub dependent1_isbyeon.sh
Your job 139 ("dependent1_isbyeon.sh") has been submitted
$ qsub -hold_jid dependent1_isbyeon.sh dependent2_isbyeon.sh
Your job 140 ("dependent2_isbyeon.sh") has been submitted
$ qsub -hold_jid dependent1_isbyeon.sh,dependent2_isbyeon.sh dependent3_isbyeon.sh
Your job 141 ("dependent3_isbyeon.sh") has been submitted
$ qstat
job-ID prior name user state submit/start at queue slots ja-task-ID
-------------------------------------------------------------------------------------------------------------
139 0.31086 dependent1 isbyeon r 01/30/2013 18:45:00 all.q@pgp-0-3.local 1
140 0.00000 dependent2 isbyeon hqw 01/30/2013 18:45:16 1
141 0.00000 dependent3 isbyeon hqw 01/30/2013 18:45:33 1
$ qstat
job-ID prior name user state submit/start at queue slots ja-task-ID
-------------------------------------------------------------------------------------------------------------
140 0.31086 dependent2 isbyeon r 01/30/2013 18:46:41 all.q@pgp-0-1.local 1
141 0.00000 dependent3 isbyeon hqw 01/30/2013 18:45:33 1
$ qstat
job-ID prior name user state submit/start at queue slots ja-task-ID
-------------------------------------------------------------------------------------------------------------
141 0.31086 dependent3 isbyeon r 01/30/2013 18:48:21 all.q@pgp-0-2.local 1
$ cat dependent1_isbyeon.sh.o139
Dependent Jobs01
$ cat dependent1_isbyeon.sh.o140
Dependent Jobs02
$ cat dependent1_isbyeon.sh.o141
Dependent Jobs03
'HPC > Sun Grid Engine' 카테고리의 다른 글
[SGE] Managing Resource Quotas (0) | 2013.07.16 |
---|---|
BIG Memory or Thread (0) | 2013.01.30 |
Job Arrays (0) | 2013.01.30 |
Example(simple_isbyeon.sh) (0) | 2013.01.30 |
userstat 설치 - A Cluster Queue/Load Monitor (0) | 2013.01.29 |
최근댓글