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

Re: [Condor-users] does dagman support the trigger condition ?



On Wed, 9 Jul 2008, zhang SunMoonStar wrote:

               does dagman support the trigger condition  ?  what extent
does the dagman support the loop dag to, a little or just not at all?

By a trigger condition, I assume you mean running a certain job when some external event happens. If this is what you mean, the answer is that DAGMan does not support it. There is a cron capability in Condor itself that could be used to run jobs at a certain time (this is not part of DAGMan). Another possibility would be to create a DAG node job that monitors the thing you want to trigger on, and exits when the trigger condition is true -- then the next job in the DAG would be the thing you want to do when the trigger happens.

Right now, DAGMan does not support loops at all. One technique we have used to simulated loops (if the number of iterations is not too large) is to "unroll" the loop into a number of sequential jobs. If you don't know the exact number of iterations ahead of time, you can use the ABORT-DAG-ON keyword to break out of the loop when you are done. (Obviously, this technique will only work if you can put some kind of upper bound ahead of time on the number of loop iterations you'll need.)

Hopefully this answers your questions...

Kent Wenger
Condor Team