GET executions REST endpoint returns task with status 1574 when requested for 1899 or 1900
search cancel

GET executions REST endpoint returns task with status 1574 when requested for 1899 or 1900

book

Article ID: 380719

calendar_today

Updated On:

Products

CA Automic Workload Automation - Automation Engine

Issue/Introduction

If this REST API call is executed, for example:

GET   http://<AE HOST>:8088/ae/api/v1/22/executions?include_deactivated=true&name=DUMMYJOB&alias=DUMMYALIAS&status=1900,1899&time_frame_from=2024-10-28T05:00:00Z

...it will return the following response:

{
    "total": 2,
    "data": [
        {
            "name": "DUMMYJOB",
            "type": "JOBS",
            "queue": "CLIENT_QUEUE",
            "run_id": 2802005,
            "status": 1574,
            "status_text": "Post processing",
            "activation_time": "2024-10-28T15:12:42Z",
            "start_time": "2024-10-28T15:15:08Z",
            "agent": "WIN01",
            "platform": "WINDOWS",
            "parent": 2802003,
            "reference_run_id": 0,
            "line_number": 3,
            "user": "DEV/DEV",
            "estimated_runtime": 120,
            "alias": "DUMMYALIAS",
            "activator": 2802003,
            "activator_object_type": "JOBP"
        },
        {
            "name": "DUMMYJOB",
            "type": "JOBS",
            "queue": "CLIENT_QUEUE",
            "run_id": 2802004,
            "status": 1900,
            "status_text": "ENDED_OK - ended normally",
            "runtime": 121,
            "activation_time": "2024-10-28T15:12:41Z",
            "start_time": "2024-10-28T15:13:07Z",
            "end_time": "2024-10-28T15:15:08Z",
            "agent": "WIN01",
            "platform": "WINDOWS",
            "parent": 2802003,
            "reference_run_id": 0,
            "line_number": 2,
            "user": "DEV/DEV",
            "estimated_runtime": 120,
            "alias": "DUMMY ALIAS",
            "activator": 2802003,
            "activator_object_type": "JOBP"
        }
    ],
    "hasmore": false
}

The above shows the call also returns a JOB with the status "Waiting for Predecessor" (status 1574).

Note that the filter on the Alias has no incidence on the behavior; if removed from the REST call the problem will persist. 

Environment

Automation Engine 21.0.11

Cause

This is a defect

Resolution

Solution:

Update to a fix version listed below or a newer version if available.


Fix version:

Component(s): Automation Engine

Automation.Engine 21.0.13 - beginning of 2025
Automation.Engine 24.4.0 - 2025

Additional Information

Bug ID: DE155713