Group tasks under the plan based on OnOK, OnError or After conditions - 7.3

Talend Administration Center User Guide

EnrichVersion
7.3
EnrichProdName
Talend Big Data
Talend Big Data Platform
Talend Data Fabric
Talend Data Integration
Talend Data Management Platform
Talend Data Services Platform
Talend ESB
Talend MDM Platform
Talend Real-Time Big Data Platform
EnrichPlatform
Talend Administration Center
task
Administration and Monitoring

Procedure

  1. In the Execution Plan list, select the plan to which you want to add tasks.
  2. Click Root: please configure this node in the right panel.
    The Edit planned task panel opens.
  3. To define multiple tasks for parallel execution at the root node, select the Use parallel execution check box.
    The configuration options for parallel execution appear.

    Example

  4. Click the Add Task button repeatedly to add as many task selection lists as needed, and select the desired tasks from the lists.
    Note that the same task cannot be added several times in the same node for parallel execution.
  5. Select the number of tasks for parallel execution from the Simultaneous exec. list, MAX chosen here to run all the selected tasks in parallel.
    Note:
    • MAX means all the selected tasks will be executed simultaneously.
    • If N tasks are defined for parallel execution, the list also offers the options of 1~N. This means, you can choose 1 to run one task at a time, x (an integer between 1~N) to run x tasks at a time, or N to run all the tasks at a time, thus achieving flexible resource allocation for better performance.
    • A task defined for parallel execution cannot have the sub-nodes such as OnOk, OnError or After.
  6. After the root node has been configured, click Root > (Simultaneous exec.: MAX) to add child nodes: OnOk, OnError and After.
    To do so, click the buttons in the Planned task tree view panel.

    Buttons

    To...

    Add OnOk

    add a child task that will be launched if the parent task finalizes without error.

    Add OnError

    add a child task that will be launched if the parent task finalizes with error.

    Add After

    add a child task that will be launched after the parent task finalizes, regardless of its error status.

    Note: OnOk and OnError can coexist as child nodes but neither of them can exist with After as child nodes.
  7. Click Add OnOk to add an OnOk node first.
    The task selection panel appears on the right.
  8. Select a task from the Task list and click Save.
  9. Click OnOk > Task: "Third_Task" and then the Add OnError button to add a child node.
    Select a task from the Task list and click Save.
  10. Click Root > (Simultaneous exec.: MAX) and then the Add OnError button to add an OnError child node for the root. Then select a task for this node.
    Add an After child node for this OnError child node as instructed above. Then select a task for this node.