Upgrading a single-triggered task to be multi-triggered
Upgrade your duplicated single-triggered tasks to one single task with multiple triggers.
You may have duplicated a task for each of the triggers you need to use for this task. You do not need to do this anymore. You can now directly define these triggers for a schedule and apply that schedule to this task.
Before you begin
-
Generate access tokens:
- For users, generate a personal access token by following Generating a Personal Access Token.
- For service accounts, generate a service access token by following Generating a service account token.
Once generated, a service account token expires after 30 minutes. If it expires, generate a new token using the POST method at the endpoint https://api.<env>.cloud.talend.com/security/oauth/token. For more information about generating a token, see Generating a service account token.
- You must know the ID of the task you need to associate the schedule. In Talend Management Console, this ID is displayed on the dedicated page of this task. For example: Or you can obtain task IDs via the following API request:
method: GET endpoint: https://api.<env>.cloud.talend.com/processing/executables/tasks headers: { "Content-Type": "application/json", "Authorization": "Bearer <your_personal_or_service_account_access_token>" } query parameters: { "workspaceId": "id_of_the_workspace_of_the_task_to_be_updated" }
- Ensure that the user or the service account to be used have the TMC_OPERATOR role and the EXECUTOR permission for the workspace to which the task to be updated belongs.
Procedure
Results
Once done, your task contains all the time triggers that once needed to be added each for a duplicated instance of the task.
{
"trigger": {
"type": "MULTIPLE"
},
"runtime": {
"type": "CLOUD"
},
"parallelExecutionAllowed": false,
"logLevel": "WARN"
}