One Star

Subjob execution order

Hi,
I'm beginner in Talend and in this forum.
I create a job which have 3 subjobs and there isn't any connexion between all 3.
I just want to know what execution order talend choose ?
Subjob 1 -> Subjob 2 -> Subjob 3
or
Subjob 1 -> Subjob 3 -> Subjob 2
or
Subjob 3 -> Subjob 2 -> Subjob 1
or
.................................................
or
.................................................
or all 3 in parallel.
Thanks
6 REPLIES
Community Manager

Re: Subjob execution order

Hi
You can use the connector 'onsubjobok' to control the execution order of each subjob. eg:
Subjob 1
|
onsubjobok
|
Subjob 2
|
onsubjobok
|
Subjob 3
Let us know if you have any questions!

Best regards
Shong
----------------------------------------------------------
Talend | Data Agility for Modern Business
One Star

Re: Subjob execution order

Thanks you shong for your quick reply.
I agree with your idea : That's what I would do in a normal case.
But Actually I work on an existing project and I must understand all the process.
The project run well but I want to know what is Talend behaviour when I run a job which contains many
subjobs without connections between them / How can I control that ? (Excuse for my English I'm a french guy)
One Star

Re: Subjob execution order

To control that, i personnaly use the tPrejob and tPostjob components. Then you are sure of the execution order.
You can also create a main job like this :
tRunJob_1 (u indicate the first job to execute (jow with only 1 flow))
|
onsubjobok
|
tRunJob-2
|
onsubjobok
|
tRunJob-3
Seven Stars

Re: Subjob execution order

what is Talend behaviour when I run a job which contains many subjobs without connections between them

We had a newbie training session from one of the support consultants recently and this question was asked. He said there is no way to know for sure what order the subjobs will be executed and it might not be consistent from one run to the next. I suspect it might depend on the order the component were added to the job design or something to that effect.
One Star

Re: Subjob execution order

Thanks you alevy....that's exactly what I want to know.

Re: Subjob execution order

in TIS, with the job property "enable parallel execution" disconnected subjobs will all execute in parallel.