# tParallelize

Manages complex Job systems. It executes several subJobs simultaneously and synchronizes the execution of a subJob with other subJobs within the main Job.

The tParallelize synchronizes the execution of a subJob with the execution of other subJobs in your main Job.

Information noteNote: This component cannot be used in ESB use cases.

## tParallelize Standard properties

These properties are used to configure tParallelize running in the Standard Job framework.

The Standard tParallelize component belongs to the Orchestration family.

The component in this framework is available in all subscription-based Talend products.

## Basic settings

| Properties | Description |
| --- | --- |
| Wait For | <ul> <li> <p> <em>end of first subJob:</em> sequence the                     relevant subJob to be executed at the end of the first subJob.</p> </li> <li> <p> <em>end of all subJobs:</em> sequence the relevant                     subJob to be executed at the end of all subJobs.</p> </li> </ul> |
| Sleep Duration | Set the time interval in milliseconds between<br>each check for subJob execution. |
| Die when one of parallelize subjobs<br>fails | Select this option to have the Job quitting execution when any<br>of the subJobs it executes fails. |

## Global Variables

| Variables | Description |
| --- | --- |
| Global Variables | ERROR\_MESSAGE: the error message generated by the<br>component when an error occurs. This is an After variable and it returns a string. This<br>variable functions only if the Die on error checkbox is<br>cleared, if the component has this checkbox.<br><br>A Flow variable functions during the execution of a component<br>while an After variable functions after the execution of the component.<br><br>To fill up a field or expression with a variable, press Ctrl+Space to access the variable list and choose the variable to use from<br>it.<br><br>For more information about variables, see [Using contexts and variables](https://help.qlik.com/talend/r/en-US/8.0/studio-user-guide/contexts-and-variables). |

## Usage

| Usage guidance | Description |
| --- | --- |
| **Usage rule** | This component can be used as either a start or<br>middle component in a main Job built of numerous subJobs. It can be connected<br>to preceding or following components using OnSubjobOk, Parallelize or Synchronize links. You can use as many<br>tParallelize<br>components as you want in your master Job.<br><br>Note that this component is<br>designed for Data Integration Jobs. Do not use it in the context of Data<br>Services Jobs or Routes because it is not thread safe between parallel requests<br>and will cause huge memory and CPU consumption. Use a Route if parallel<br>processing is a requirement. |
| Connections | Outgoing links (from this component to<br>another):<br><br><br>Trigger: Synchronize;<br>Parallelize.<br><br>Incoming links (from one component to this<br>one):<br><br><br>Trigger: On Subjob Ok;<br>On Subjob Error; Run if; On Component Ok; On Component Error.<br><br>For further information regarding connections,<br>see [Using connections in a Job](https://help.qlik.com/talend/r/en-US/8.0/studio-user-guide/using-connections-in-job). |

**Related concepts**

* [Parallelizing/synchronizing subJobs execution](https://help.qlik.com/talend/en-US/components/8.0/orchestration/tparallelize-tmsgbox-parallelizing-synchronizing-subjobs-execution-standard-component-enterprise-the)