From: Sharon L. <lu...@us...> - 2007-03-27 23:39:56
|
I don't really understand exactly how you implemented your STAX jobs from your description. It would be helpful if you provided the actual STAX jobs that you are executing (or at least the relevant information from them). Also, why are you using the <stafcmd> element to submit a STAX job instead of the <job> element? If you want to submit a STAX job (e.g. a sub-job) from within a STAX job and wait for it to complete, you should use the <job> element. See the STAX User's Guide for more information on the <job> element. For example: <script> jobFileList = [ {'jobFile': 'C:/tests/J1.xml', 'jobName': 'J1'}, {'jobFile': 'C:/tests/J2.xml', 'jobName': 'J2'}, {'jobFile': 'C:/tests/J3.xml', 'jobName': 'J3'} ] staxMachine = 'hostA' </script> <paralleliterate var="jobInfo" in="jobFileList"> <sequence> <script> jobFile = jobInfo['jobFile'] jobName = jobInfo['jobName'] </script> <job name="jobName" clearlogs="1"> <job-file machine="staxMachine">jobFile</job-file> </job> <if expr="RC == 0"> <log message="1"> 'Sub-job ID %s with name %s completed on machine %s with Result: %s' % \ (STAXSubJobID, jobName, staxMachine, STAXResult) </log> <else> <log message="1"> 'Sub-job with name %s could not be started on machine %s. RC: %s Result: %s' % \ (jobName, staxMachine, RC, STAFResult) </log> </else> </if> </sequence> </paralleliterate> -------------------------------------------------------------- Sharon Lucas IBM Austin, lu...@us... (512) 838-8347 or Tieline 678-8347 Mic...@lo... Sent by: sta...@li... 03/27/2007 05:20 PM To sta...@li... cc Subject [staf-users] return behavior of STAX jobs lauched through stafcmd Hello, I'm having a problem where stax jobs launched on a different machine via stafcmd are not returning as they finish. An example scenario would be: stax job S1 starts stax jobs J1, J2, and J3 using stafcmd inside of a paralleliterate block on host A. Then, J1, J2, and J3 each start jobs T1, T2, and T3 respectively through stafcmd on host B using the parameters "clearlogs enabled wait returnresult". When jobs T1, T2, T3 finish, J1, J2, and J3 should then sequentially call jobs R1, R2, and R3 respectively on host C with the same parameters. The problem I am facing is that when T1 finishes on host B, J1 does not necessarily immediately call job R1 on host C. It may call R1 when T2 completes (or T3) apparently exhibiting random behavior. Is this behavior expected? I'm using STAF version 3.1.5 and STAX version 3.1.4 on RHEL4 ES. Thank you for any help you can give regarding this issue. Michael Emch ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ staf-users mailing list sta...@li... https://lists.sourceforge.net/lists/listinfo/staf-users |