Skip to main content
Announcements
Talend Data Catalog 8.0 End of Support: December 31, 2024 Get Details

Talend Studio: What is the difference between OnSubjobOK and OnComponentOK?

100% helpful (1/1)
cancel
Showing results for 
Search instead for 
Did you mean: 
TalendSolutionExpert
Contributor II
Contributor II

Talend Studio: What is the difference between OnSubjobOK and OnComponentOK?

Last Update:

Jan 22, 2024 9:35:30 PM

Updated By:

Jamie_Gregory

Created date:

Apr 1, 2021 6:11:41 AM

Answer

OnSubjobOK and OnComponentOK are trigger links, which can link to another subjob. The main difference between them lies in the execution order of the linked subjob.

  • With OnSubjobOK, the linked subjob starts only when the previous subjob completely finishes.
  • With OnComponentOK, the linked subjob starts when the previous component finishes.

 

What is a subjob?

A subjob is a self-contained subset of a larger Job, composed of components and links.

The following diagram shows a Job with three subjobs:

0693p000008uAySAAU.png

The execution order of subjobs linked by OnComponentOK is within the execution cycle of the previous subjob. In this example, subjob 2 starts when tLogRow_1 finishes; subjob 3 starts when both subjob 1 and subjob 2 end, because subjob 2 runs within the execution cycle of subjob 1.

Only the first component of a subjob can use the OnSubjobOK link.

Labels (1)
Version history
Last update:
‎2024-01-22 09:35 PM
Updated by: