OK, it now works, but still all <message> elements in TempJob.xml don't
work, my new TempJob.xml looks as follows:

> <?xml version="1.0" encoding="UTF-8" standalone="no"?>
> <!DOCTYPE stax SYSTEM "stax.dtd">
>
> <stax>
>     <defaultcall function="TempJob"/>
>
>     <function name="TempJob">
>         <function-single-arg>
>             <function-required-arg name='i'></function-required-arg>
>         </function-single-arg>
>         <sequence>
>             <message level='"trace"' log='1'>
>                 'i = %s' % ( i )
>             </message>
>
>             <stafcmd>
>                 <location>'local'</location>
>                 <service>'DELAY'</service>
>                 <request>'Delay %s' % ( i * 10000 )</request>
>             </stafcmd>
>         </sequence>
>     </function>
> </stax>
>

Although the message is logged to the sub-jobs log, it isn't shown in the
STAX Monitor!

2008/5/20 Sharon Lucas <[EMAIL PROTECTED]>:

>
> That's because the STAX sub-jobs that you are running are completing almost
> instantaneously because TempJob..xml is not doing anything useful.  When the
> STAX Monitor is used to start a STAX job, it submits the STAX EXECUTE
> request with a HOLD request and then releases the STAX job.  But, since the
> STAX job is completing so fast, it gets a RC 48 (Does Not Exist) when
> releasing the STAX job id (e.g. job id 23).  Note that this does not
> adversely effect the STAX jobs that you're running.
>
> If you changed your TempJob.xml job to do something useful (or at least
> something that makes it run for a few seconds), you wouldn't see this
> problem.  For example, when I add a delay of 3 seconds to TempJob.xml, this
> problem does not occur.  For example:
>
> <?xml version="1.0" encoding="UTF-8" standalone="no"?>
> <!DOCTYPE stax SYSTEM "stax.dtd">
>
> <stax>
>     <defaultcall function="TempJob"/>
>
>     <function name="TempJob">
>         <function-single-arg>
>             <function-required-arg name='i'></function-required-arg>
>         </function-single-arg>
>         <sequence>
>             <message if='vars().has_key( "debug" ) and debug != 0'
> level='"trace"' log='1'>
>                 'i = %s' % ( i )
>             </message>
>             <stafcmd name="'Delay for 3 seconds'">
>               <location>'local'</location>
>               <service>'DELAY'</service>
>               <request>'DELAY 3000'</request>
>             </stafcmd>
>         </sequence>
>     </function>
> </stax>
>
> --------------------------------------------------------------
> Sharon Lucas
> IBM Austin,   [EMAIL PROTECTED]
> (512) 838-8347 or Tieline 678-8347
>
>
>
>  *"Ahmed Mostafa" <[EMAIL PROTECTED]>*
> Sent by: [EMAIL PROTECTED]
>
> 05/20/2008 08:18 AM
>   To
> STAF <staf-users@lists.sourceforge.net>  cc
>   Subject
> [staf-users] [STAX] Failure to run multiple <job>s in parallel
>
>
>
>
> I fail to run multiple STAX sub-jobs via the <job> element inside a
> <paralleliterate> element, and when I try to close the STAX Monitor windows
> it says:
> An error was encountered while attempting to release the job, rc=48 result
> = 23.
> Once I click OK, I find them all appear in the main STAX Monitor window for
> a while then they disappear and the main job is continued.
> Here are my STAX job files:*
> Temp.xml:*
> <?xml version="1.0" encoding="UTF-8" standalone="no"?>
> <!DOCTYPE stax SYSTEM "stax.dtd">
>
> <stax>
>    <defaultcall function="Main"/>
>
>    <function name="Main">
>        <sequence>
>            <sequence>
>                <paralleliterate var='i' in='[1, 2, 3, 4, 5]'>
>                    <job clearlogs='"enabled"'
>                         monitor='1'
>                         name='"Job%s" % ( i )'
>                         pythonoutput='"JobUserLogAndMsg"'
>                         pythonloglevel='"trace2"'>
>                        <job-file>path.dirname( STAXJobXMLFile ) +
> R'\TempJob.xml'</job-file>
>                        <job-function-args eval='1'>i</job-function-args>
>                    </job>
>                </paralleliterate>
>
>                <message>
>                    'Parallel jobs ended'
>                </message>
>            </sequence>
>        </sequence>
>    </function>
> </stax>
> *
> TempJob.xml:*
> <?xml version="1.0" encoding="UTF-8" standalone="no"?>
> <!DOCTYPE stax SYSTEM "stax.dtd">
>
> <stax>
>    <defaultcall function="TempJob"/>
>
>    <function name="TempJob">
>        <function-single-arg>
>            <function-required-arg name='i'></function-required-arg>
>        </function-single-arg>
>        <sequence>
>            <message if='vars().has_key( "debug" ) and debug != 0'
> level='"trace"' log='1'>
>                'i = %s' % ( i )
>            </message>
>        </sequence>
>    </function>
> </stax>
>
> What may be causing this problem?
> --
> Ahmed Mostafa
> 0123919750*
> [EMAIL PROTECTED] <[EMAIL PROTECTED]>
>
> Software Engineer
> IBM Egypt, Cairo Technology Development Center
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
>
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/_______________________________________________
> staf-users mailing list
> staf-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/staf-users
>
>


-- 
Ahmed Mostafa
0123919750
[EMAIL PROTECTED]
Software Engineer
IBM Egypt, Cairo Technology Development Center
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users

Reply via email to