Skip to main content Skip to complementary content

Resuming a task after the maintenance

Resume your task to reactivate the schedule executions after the maintenance.

Before you begin

  • Generate access tokens:

    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.

  • Ensure that the user or the service account to be used to issue API calls has the TMC_OPERATOR role and the AUTHOR permission for the workspace to which the task to be verified belongs.

Procedure

Issue the following request to resume a given task.

Example

method: PUT
                  endpoint: https://api.<env>.cloud.talend.com/orchestration/executables/tasks/<taskId>/pause
headers: {
      "Content-Type": "application/json",
      "Authorization": "Bearer <your_personal_access_token_or_service_account_token>"
          }
payload: {
      "pause" : false,
      "pauseContext" : "Resume scheduled executions after the maintenance"
         }
  • Set false to in the pause field to pause the task.
  • In the pauseContext field, enter the message to explain the reason for which you resume the task.

Results

The 202 code is returned and this resume takes effect immediately. Therefore, send the request only when the maintenance is over.

Once done, all its schedules are activated and manual start becomes accepted again.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!