Managing job dependencies
This recipe shows how simple, serial job dependencies can be managed using Talend.
Getting ready
Open the job jo_cook_ch11_0040_simpleSchedule
.
How to do it…
- Drag the job
jo_cook_ch11_0040_task1
onto the canvas. - Drag the job
jo_cook_ch11_0040_task2
onto the canvas, and link from task 1 using an OnSubjobOk trigger link. - Drag the job
jo_cook_ch11_0040_task3
onto the canvas, and link from task 1 using an OnSubjobOk trigger link. - Your job should now look like the one in the next screenshot below:
- Run the job to see the output of the three tasks.
How it works…
Dragging each of the jobs onto the canvas automatically creates a tRunjob
component.
Each tRunjob
is a subjob in its own right, so testing for onSubjobOk will result in the jobs executing serially, assuming that they all run without error.
There's more…
The following are some additional points to be noted regarding job dependencies.
Die on error
The tRunJob
components will die if an error occurs, because...