Page 1 of 1

how to loop run job every five minutes

Posted: Mon Apr 25, 2005 9:26 pm
by lynnliu
i'm newer to parellel job, i find that startloop and endloop in sequence job palette,

how to use startloop plugin to run job every 5 minutes?

can i use server job control to loop run a parallel job, is it bad performance or structure?

thanks

Posted: Mon Apr 25, 2005 11:05 pm
by ray.wurlod
Every five minutes is rather extreme - you're almost in the realm of creating a real-time service!

Between StartLoop and EndLoop you can, for example, include a Routine Activity that invokes a routine that does nothing but sleep for five minutes.

You can certainly do it yourself in a server job using job control code. This is, after all, exactly what a Job Sequence produces (you can inspect the job control code), therefore it's not bad practice. The controlling job need only execute on one node (the server machine) - once the parallel job starts its configuration file will specify what processing nodes it needs to use.

Posted: Tue Apr 26, 2005 8:15 am
by lynnliu
thanks a million,ray

i finish it in server job control,cause the job parameter is dynamicly got from another job's output, i don't know how to do this between startloop and endloop

thanks

Posted: Tue Apr 26, 2005 4:51 pm
by ray.wurlod
If job1 writes the information to a text file, you could use an Execute Command activity to read the file (cat filename on UNIX or type filename on Windows). Output from the command is available in downstream activities when you click "Use Parameter".