Returning the status of a task executed in asynchronous mode - 7.3

Talend Administration Center User Guide

Version
7.3
Language
English
Product
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
Module
Talend Administration Center
Content
Administration and Monitoring
Last publication date
2024-02-20

Procedure

  1. Use the runTask MetaServlet command to run the execution task.

    Example

    For example (on Windows):
    MetaServletCaller.bat --tac-url=http://localhost:8080/org.talend.administrator/ 
    --json-params={"actionName":"runTask","authPass":"admin","authUser":"admin@company.com", 
    "mode":"asynchronous","taskId":"2502"} --format-output

    Example

    You will get for example:
    {
      "execRequestId":  "1406817216723_97nsV",
       "executionTime": {
         "millis": 1069,
         "seconds": 1
      },
       "returnCode": 0
    }
  2. Execute the command getTaskExecutionStatus to follow the execution state.

    Example

    For example (on Windows):
    MetaServletCaller.bat --tac-url=http://localhost:8080/org.talend.administrator/ 
    --json-params={"actionName":"getTaskExecutionStatus","authPass":"admin",
    "authUser":"admin@company.com","execRequestId": "1406817216723_97nsV"} --format-output

    Example

    If the task is still running during the request, you will get for example:
    {
      "execBasicStatus":  "RUNNING",
       "execDetailedStatus":  "RUNNING",
       "execDetailedStatusLabel":  "Running...",
       "executionTime": {
         "millis": 309,
         "seconds": 0
      },
       "returnCode": 0
    }
    The task execution status is Running.

    Example

    If the task execution has ended, you will get for example:
    {
      "execBasicStatus":  "ERROR",
       "execDetailedStatus":  "JOB_ERROR",
       "execDetailedStatusLabel":  "Job ended
            with error(s)",
       "executionTime": {
         "millis": 300,
         "seconds": 0
      },
       "jobExitCode": 1,
       "returnCode": 0
    }
    The execution status Job error as well as the Job exit code 1 indicate that an error occurred during the task execution.