[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Condor-users] Simulating while loops in DAGMan


You are using a perl script, I see, why don't you use the condor perl module
and write a perl script with the submission enclosed in a while loop. It
looks much more straightforward than trying to get around the limitations of


Cyclotron Institute, Texas A&M university
ZIP 77843-3366
(979)-845-1411 ext. 258

> Hi,
> I'm trying to execute a job repeatedly until some convergence 
> criterion is met.  I realise I can't have any loops so I'm 
> trying to work around by using the RETRY function i.e. my DAG is:
> JOB iteration condor/while_body.submit
> RETRY iteration 1000 UNLESS-EXIT 2
> SCRIPT POST iteration condor/scripts/loop_condition.pl
> - while_body.submit is the body of the loop and I've made it 
> always exit with status 1.
> - loop_condition.pl will exit with status 2 if we should 
> terminate the loop, 0 otherwise.
> - I'm happy that the loop will stop after 1000 iterations no 
> matter what (hopefully it won't get that far!)
> If that can work, I'd like to replace the body with a DAG 
> i.e. an inner DAG produced by "condor_submit_dag -no_submit".
> FYI, I've got a solution for for loops, I just need while loops!
> Thanks in advance,
> Partha
> --
> Partha Lal
> PhD Student
> CSTR, University of Edinburgh
> _______________________________________________
> Condor-users mailing list
> Condor-users@xxxxxxxxxxx
> https://lists.cs.wisc.edu/mailman/listinfo/condor-users