Page 1 of 1

Running Jobs in parallel from Job Sequence - Job waiting

Posted: Wed Oct 24, 2007 10:25 am
by sri1dhar
Hi,

I designed a job sequence (call it Mainseq1) to run two other job sequences (call them Subseq1, Subseq2) in parallel.

MainSeq1:
------------

UserVarAct1--->Subseq1JobAct

UserVarAct2--->Subseq2JobAct


Although Mainseq1 is starting Subseq1, Subseq2 in parallel, actually Subseq2 is waiting for Subseq1 to finish.

Both Subseq1, Subseq2 are in running status at the same time. While Subseq1 is executing its activities in the order, all Subseq2 does is initialize its environment variables and wait (Observed from job log). Subseq2 is resuming with its activities only after Subseq1 is finished.

Looking for inputs on the above issue. Your help is greatly appreciated.

Regards
Sri

Posted: Wed Oct 24, 2007 2:42 pm
by ray.wurlod
Not enough information. We have no idea what these jobs are doing, and therefore no idea why the second job may be waiting. For example it may be locks or semaphores within DataStage itself (that you have elected to use to synchronize events), it may be locks in a database, it may be other things. Tell us.

Re: Running Jobs in parallel from Job Sequence - Job waiting

Posted: Thu Oct 25, 2007 9:57 am
by sri1dhar
sri1dhar wrote:Hi,

I designed a job sequence (call it Mainseq1) to run two other job sequences (call them Subseq1, Subseq2) in parallel.

MainSeq1:
------------

UserVarAct1--->Subseq1JobAct

UserVarAct2--->Subseq2JobAct


Although Mainseq1 is starting Subseq1, Subseq2 in parallel, actually Subseq2 is waiting for Subseq1 to finish.

Both Subseq1, Subseq2 are in running status at the same time. While Subseq1 is executing its activities in the order, all Subseq2 does is initialize its environment variables and wait (Observed from job log). Subseq2 is resuming with its activities only after Subseq1 is finished.

Looking for inputs on the above issue. Your help is greatly appreciated.

Regards
Sri
I figured what the issue is. I am calling a sequence generator concurrently in both the subjobs using KeyMgtGetNextValue.
This issue got resolved after replacing KeyMgtGetNextValue with KeyMgtGetNextValueConcurrent.

Thanks for responding.