Issue with Triggering Jobs from another Job

Hi,

We are triggering multiple Jobs from one Job in Sequence like

exec(’/XXXXX/XXXXXX/XXXX/Jobname1.sh’,8);

exec(’/XXXXX/XXXXXX/XXXX/Jobname2.sh’,8);

exec(’/XXXXX/XXXXXX/XXXX/Jobname3.sh’,8);

exec(’/XXXXX/XXXXXX/XXXX/Jobname4.sh’,8);

exec(’/XXXXX/XXXXXX/XXXX/Jobname5.sh’,8);

each job is getting triggered successfully from Parent Job, but the issue is:

Until the first job is completed , the second job is not getting triggered.
Similarly until the second job is completed , the third job is not getting triggered.

etc…

means until the previous job is completed , control is not getting back to parent Job to trigger the next job.

why this behavior of BODS ? why can’t Parent job immediately trigger the next job instead waiting for completion of first job.

Regards,
Gouravg


gouravg (BOB member since 2014-09-16)

I believe you can set the exec flag to 256 to not wait for the return code.

Theres also a switch in the command line execution to tell the batch job to wait.

…or use a real job scheduler and you wont have these issues any more. :wink:


jlynn73 :us: (BOB member since 2009-10-27)

Thanks .

Its working when I set the flag to 256.

can you please tell me what do you mean by this:

‘There’s also a switch in the command line execution to tell the batch job to wait.’

Regards,
Gouravg


gouravg (BOB member since 2014-09-16)