[torqueusers] Dependencies among several jobs

nathaniel.x.woody at gsk.com nathaniel.x.woody at gsk.com
Mon Aug 28 12:12:09 MDT 2006


In what is probably a bad idea, when we want to use job dependencies, we 
creat all jobs in the held state so that we could collect the jobids, add 
those to the appropriate jobs and then removed the hold on them.  It was a 
lot of work, but it seemed to work allright.  We typically do all of our 
submissions using the pbs_python toolkit, so this is _relatively_ easy to 
do this way.  Don't know if that's any help to you our not.  In general, 
we had some problems with the job dependencies because as near as we could 
tell, the jobid that is passed as a dependency must be a jobid currently 
known to the system in order for that dependency to be enforced properly.  
If, for instance, you started a job with id; 42.yourcluster, and wanted to 
submit a number of jobs that should execute only when that finished, you 
needed to make sure that all jobs with that depenency are submitted BEFORE 
42.yourcluster completes.  I think the only moral there is to watch your 
synchronization, which may or may not be very controllable from a script 


"Vincenzo Di Nicola" <vdinicol at hotmail.com> 
Sent by: torqueusers-bounces at supercluster.org
25-Aug-2006 18:44
torqueusers at supercluster.org

[torqueusers] Dependencies among several jobs

Dear Torque users,

I have recently started to use Torque/Maui, but I have some doubts about 
dependencies I hope you can clarify. It looks to me that the way to 
them is by using "-W depend=beforeany:jobid" (or similar) in the qsub 
command or in the #PBS directive. But how can I know beforehand the job id 

of something that hasn't been submitted yet?

I would like to submit at once, say, 30 jobs with dependencies between 
other. The only solution I have thought so far is to avoid "before" 
dependencies and create a script file: there I submit each single job, 
its jobid, and use the "-W depend=afterany" option with regard to the 
previous job ids.
But is there a nicer way to enforce dependencies, maybe without having to 
rely on a jobid (but perhaps a job name)?

Thank you in advance,
Vincenzo Di Nicola

Call friends with PC-to-PC calling -- FREE 

torqueusers mailing list
torqueusers at supercluster.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.supercluster.org/pipermail/torqueusers/attachments/20060828/8ba48112/attachment.html

More information about the torqueusers mailing list