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

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



hi  wenger!

  thanks  very much! i found that the source of dagman was wriiten by you. how great are you.
     the first question i asked is that if the dag graph supports the true-false trigger. e.g:  if the parent node A returns 0(true), then run the child node B,else if the return value is 1(false),then run the child C,not B.
   does dagman support the above situation?

  now i am doing this thing: i try to migrate the function of dagman to the batch system
software developed by myself.  may you give me some advice?  thanks again.
                    Regards
                                              
2008/7/9 R. Kent Wenger <wenger@xxxxxxxxxxx>:
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
_______________________________________________
Condor-users mailing list
To unsubscribe, send a message to condor-users-request@xxxxxxxxxxx with a
subject: Unsubscribe
You can also unsubscribe by visiting
https://lists.cs.wisc.edu/mailman/listinfo/condor-users

The archives can be found at:
https://lists.cs.wisc.edu/archive/condor-users/