Probably it could work both ways. I prefer to wrap my STAX jobs in request/release calls. Something like this:
... <sequence> <call function="'RequestMutex'">mutex</call> <call function="'Job'">jobparams</call> <call function="'ReleaseMutex'">mutex</call> </sequence> ... <function name="RequestMutex" scope="local"> <function-list-args> <function-required-arg name="mutex"/> </function-list-args> <stafcmd name="'REQUEST MUTEX'"> <location>STAX_SERVER</location> <service>'SEM'</service> <request>'REQUEST MUTEX %s GARBAGECOLLECT NO' % mutex</request> </stafcmd> </function> <function name="ReleaseMutex" scope="local"> <function-list-args> <function-required-arg name="mutex"/> </function-list-args> <stafcmd name="'RELEASE MUTEX'"> <location>STAX_SERVER</location> <service>'SEM'</service> <request>'RELEASE MUTEX %s' % mutex</request> </stafcmd> </function> On 10.05.2011 20:10, Cindy Zhu wrote: > Thank you. > > One thing I am confused is where I should put the SEM service in, the STAX job or the STAF command I send to run the STAX job? > > Thanks, > > Cindy > > -----Original Message----- > From: Dmitry Mukhin > Sent: May-10-11 9:47 AM > To: Cindy Zhu > Subject: Re: [staf-users] How to put a STAX job in a queue > > Hi. > > Use SEM service for that. > http://staf.sourceforge.net/current/STAFUG.htm#HDRSEMSRV > > On 10.05.2011 19:39, Cindy Zhu wrote: >> Hi, >> >> I need to put a STAX job in a queue. >> >> Currently, I have the following STAF command to run a STAX job: >> >> STAF 1693W7.Fekete.com STAX EXECUTE FILE D:\DistributionTesting\SilkTestDistribution\RunOnTestPCs.xml MACHINE 1693W7.Fekete.com JOBNAME "Silk" SCRIPT "VERSION='1.1.1.1'" SCRIPT "PRODUCT='HARMONY'" >> >> 1693W7.Fekete.com is the test host machine of the test clients. The STAX >> job here is to run the regression test on the test clients whenever a build is ready. We have specific machines to run the regression test for a specific application. We can only run the same STAX job on those machines only when the previous STAX job is finished. >> >> Can you please help? >> >> BTW, I searched the forum and I cannot get the exact answer of how to do >> this. >> >> >> Thanks, >> >> Cindy ------------------------------------------------------------------------------ Achieve unprecedented app performance and reliability What every C/C++ and Fortran developer should know. Learn how Intel has extended the reach of its next-generation tools to help boost performance applications - inlcuding clusters. http://p.sf.net/sfu/intel-dev2devmay _______________________________________________ staf-users mailing list staf-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/staf-users