GetPipelineRun
Queries the details of a single run, including the data window, execute status, retry information, run statistics, and error message of the fault.
Operation description
Invoke GetPipelineRun to query the details of a single pipeline run, including the data window, execute status, retry information, run statistics, and error message of the fault.
For OSS imports, use
statusto query the run status, and usework_total,work_success,work_failed, andwork_skippedunderstatsto view the processed row counts and results.When an import fails, check
errorCodeanderrorMessage. TheerrorMessagecan contain the package path or object path, the cause, and up to three failure examples. In the case of package-level failures only,work_failedcan still be 0.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
agentloop:GetPipelineRun |
none |
*Pipeline
|
None | None |
Request syntax
GET /agentspace/{agentSpace}/pipeline/{pipelineName}/runs/{runId} HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| agentSpace |
string |
No |
The name of the AgentSpace. |
my-agent-space |
| pipelineName |
string |
No |
The name of the pipeline. |
my-pipeline |
| runId |
string |
No |
The ID of the run. |
run-20260101-0001 |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
No parameters required.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response data. |
||
| requestId |
string |
The request ID used to locate the request during troubleshooting. |
9ACFB10A-1B2C-3D4E-5F6G-7H8I9J0K1L2M |
| runId |
string |
Run Id |
run-20260101-0001 |
| pipelineName |
string |
The name of the pipeline. |
my-pipeline |
| agentSpaceName |
string |
The name of the AgentSpace. |
my-agent-space |
| fromTime |
integer |
The start time of the data window in UNIX seconds. |
1735660800 |
| toTime |
integer |
The end time of the data window in UNIX seconds. |
1735747200 |
| triggerType |
string |
The trigger type. Valid values: Scheduled, Manual, and RunOnce. |
Scheduled |
| triggerTime |
string |
The trigger time in ISO 8601 UTC format. |
2026-01-01T00:00:00.000Z |
| status |
string |
The run status. Valid values: Pending, Running, Succeeded, Failed, and Cancelled. |
Succeeded |
| attempt |
integer |
The current number of retries. |
0 |
| maxAttempts |
integer |
The maximum number of retries. |
3 |
| startTime |
string |
The execution start time in ISO 8601 UTC format. |
2026-01-01T00:00:01.000Z |
| finishTime |
string |
The finish time in ISO 8601 UTC format. |
2026-01-01T00:00:10.000Z |
| nextRetryTime |
string |
The next retry time in ISO 8601 UTC format. |
2026-01-01T00:01:00.000Z |
| stats |
object |
The run statistics, including processedRows (number of processed rows), processedBytes (number of processed bytes), outputRows (number of output rows), outputBytes (number of output bytes), elapsedMs (elapsed time in milliseconds), cpuSec (CPU seconds), cpuCores (number of CPU cores), and tokenCount (number of consumed tokens). |
{"processedRows":1000,"elapsedMs":2500} |
|
any |
The value of an individual run statistic. |
1000 |
|
| errorMessage |
string |
The error message. |
Failed to evaluate filter expression in node 'node-1': column 'score' does not exist. |
| errorCode |
string |
The semantic error code. |
ExpressionEvaluationError |
| results |
object |
The inline run results. This field is returned only when output.inline is set to true during the trigger. |
{"outputRows": 100, "summary": "processed 100 rows, 92 matched", "passed": true} |
|
any |
The value of an individual inline run result. |
{"outputRows": 100, "summary": "processed 100 rows, 92 matched", "passed": true} |
|
| asyncNodes |
array<object> |
The list of asynchronous node execution statuses. |
|
|
object |
The asynchronous node execution status. |
||
| nodeExecutionId |
string |
The node execution ID. |
ne-001 |
| nodeId |
string |
The node ID. |
stage-1 |
| nodeType |
string |
The node type. |
annotation |
| taskVersion |
integer |
The task version number. |
1 |
| attempt |
integer |
The number of execution attempts. |
1 |
| status |
string |
The asynchronous node status. |
WAITING |
| startAttempts |
integer |
The number of start attempts. |
1 |
| externalTaskId |
string |
The external task ID. |
hs-001 |
| signalType |
string |
The latest signal type. |
STAGE_COMPLETED |
| itemReadyCount |
integer |
The number of ready work items. |
10 |
| recordCount |
integer |
The total number of stage records. |
10 |
| inputTokens |
integer |
The number of consumed input tokens. |
1200 |
| outputTokens |
integer |
The number of consumed output tokens. |
300 |
| totalTokens |
integer |
The total number of consumed tokens. |
1500 |
| failedCount |
integer |
The number of failed records. |
0 |
| routed |
boolean |
Indicates whether the node has been routed to the downstream stage. |
false |
| lastError |
string |
The latest error message. |
example-error |
| nodeExecutions |
array<object> |
The list of node execution records. |
|
|
array<object> |
The node execution record. |
||
| nodeExecutionId |
string |
The node execution ID. |
ne-001 |
| runId |
string |
The run ID. |
run-20260101-0001 |
| taskVersion |
integer |
The task version number. |
1 |
| nodeId |
string |
The node ID. |
stage-1 |
| nodeType |
string |
The node type. |
annotation |
| order |
integer |
The node execution order. |
1 |
| attempt |
integer |
The number of execution attempts. |
1 |
| mode |
string |
The node execution mode. |
ASYNC |
| status |
string |
The node execution status. |
WAITING |
| inputRef |
object |
The node input data reference. |
|
| kind |
string |
The reference data type. |
dataset |
| owner |
string |
The data owner identifier. |
1234567890123456 |
| resource |
string |
The data resource identifier. |
dataset-001 |
| boundary |
string |
The immutable data boundary identifier. |
v1 |
| schemaVersion |
string |
The data schema version. |
1 |
| digest |
string |
The data digest. |
sha256:abcdef |
| outputRef |
object |
The node output data reference. |
|
| kind |
string |
The reference data type. |
dataset |
| owner |
string |
The data owner identifier. |
1234567890123456 |
| resource |
string |
The data resource identifier. |
dataset-001 |
| boundary |
string |
The immutable data boundary identifier. |
v1 |
| schemaVersion |
string |
The data schema version. |
1 |
| digest |
string |
The data digest. |
sha256:abcdef |
| outputStartResource |
string |
The output start resource identifier. |
dataset-001 |
| outputStartSeq |
integer |
The output start sequence number. |
0 |
| externalTaskId |
string |
The external task ID. |
hs-001 |
| completionEventId |
string |
The completion event identifier. |
evt-001 |
| inputCount |
integer |
The number of input records. |
10 |
| outputCount |
integer |
The number of output records. |
10 |
| errorCode |
string |
The node error code. |
StageFailed |
| errorMessage |
string |
The node error message. |
stage execution failed |
| startedAtTime |
string |
The node start time. |
2026-01-01T00:00:01Z |
| finishedAtTime |
string |
The node end time. |
2026-01-01T00:00:10Z |
| taskVersion |
integer |
The frozen node version number. |
1 |
| pipelineSnapshot |
object |
The frozen pipeline configuration snapshot for this run. |
|
| nodes |
array<object> |
The list of frozen orchestration nodes. |
|
|
array<object> |
The configuration of a single frozen node. |
||
| id |
string |
The node ID. |
stage-1 |
| type |
string |
The node type. |
annotation |
| parameters |
object |
The node parameters in a key-value structure, which vary depending on the node type. |
{"stageId":"stage-1"} |
|
any |
The node parameter value. |
value |
|
| path |
string |
The node path. |
/stage-1 |
| totalCount |
integer |
The total number of input records. |
100 |
Examples
Success response
JSON format
{
"requestId": "9ACFB10A-1B2C-3D4E-5F6G-7H8I9J0K1L2M",
"runId": "run-20260101-0001",
"pipelineName": "my-pipeline",
"agentSpaceName": "my-agent-space",
"fromTime": 1735660800,
"toTime": 1735747200,
"triggerType": "Scheduled",
"triggerTime": "2026-01-01T00:00:00.000Z",
"status": "Succeeded",
"attempt": 0,
"maxAttempts": 3,
"startTime": "2026-01-01T00:00:01.000Z",
"finishTime": "2026-01-01T00:00:10.000Z",
"nextRetryTime": "2026-01-01T00:01:00.000Z",
"stats": {
"key": "1000"
},
"errorMessage": "Failed to evaluate filter expression in node 'node-1': column 'score' does not exist.",
"errorCode": "ExpressionEvaluationError",
"results": {
"key": "{\"outputRows\": 100, \"summary\": \"processed 100 rows, 92 matched\", \"passed\": true}"
},
"asyncNodes": [
{
"nodeExecutionId": "ne-001",
"nodeId": "stage-1",
"nodeType": "annotation",
"taskVersion": 1,
"attempt": 1,
"status": "WAITING",
"startAttempts": 1,
"externalTaskId": "hs-001",
"signalType": "STAGE_COMPLETED",
"itemReadyCount": 10,
"recordCount": 10,
"inputTokens": 1200,
"outputTokens": 300,
"totalTokens": 1500,
"failedCount": 0,
"routed": false,
"lastError": "example-error"
}
],
"nodeExecutions": [
{
"nodeExecutionId": "ne-001",
"runId": "run-20260101-0001",
"taskVersion": 1,
"nodeId": "stage-1",
"nodeType": "annotation",
"order": 1,
"attempt": 1,
"mode": "ASYNC",
"status": "WAITING",
"inputRef": {
"kind": "dataset",
"owner": "1234567890123456",
"resource": "dataset-001",
"boundary": "v1",
"schemaVersion": "1",
"digest": "sha256:abcdef"
},
"outputRef": {
"kind": "dataset",
"owner": "1234567890123456",
"resource": "dataset-001",
"boundary": "v1",
"schemaVersion": "1",
"digest": "sha256:abcdef"
},
"outputStartResource": "dataset-001",
"outputStartSeq": 0,
"externalTaskId": "hs-001",
"completionEventId": "evt-001",
"inputCount": 10,
"outputCount": 10,
"errorCode": "StageFailed",
"errorMessage": "stage execution failed",
"startedAtTime": "2026-01-01T00:00:01Z",
"finishedAtTime": "2026-01-01T00:00:10Z"
}
],
"taskVersion": 1,
"pipelineSnapshot": {
"nodes": [
{
"id": "stage-1",
"type": "annotation",
"parameters": {
"key": "value"
},
"path": "/stage-1"
}
]
},
"totalCount": 100
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.