NERSCPowering Scientific Discovery Since 1974

Job dependencies do not work as expected. Require additional string in job name

April 8, 2011 by Katie Antypas (0 Comments)

Symptom: submitting jobs which depend on other jobs does not work.

Work Around: An additional string needs to be added to the jobid @sdb. We are working to resolve this issue. See the example below. Submit "jobA" and "jobB" will run after "jobA" has completed.

 

>> cat dependency_jobA.scr
#!/bin/csh
#PBS -q debug
#PBS -l mppwidth=1
#PBS -l walltime=00:05:00
#PBS -N jobA
#PBS -j oe
cd $PBS_O_WORKDIR

echo "submitting jobB"

qsub -W depend=afterany:${PBS_JOBID}@sdb dependency_jobB.scr
sleep 60
echo "hi from jobA, ${PBS_JOBID}"

 

>> cat dependency_jobB.scr
#!/bin/csh
#PBS -q debug
#PBS -l mppwidth=1
#PBS -l walltime=00:02:00
#PBS -N jobB
#PBS -j oe
cd $PBS_O_WORKDIR
echo "hi from jobB, ${PBS_JOBID}"

Post your comment

You cannot post comments until you have logged in. Login Here.

Comments

No one has commented on this page yet.

RSS feed for comments on this page | RSS feed for all comments