View workflow reruns¶
List rerun branches under a job.
HTTP
GET $CLOUDSIGMA_API_BASE/workflow/v2/workflow-apps/{workflow_id}/executions/{execution_id}/rerun-branches
Before you call this API¶
Configure the regional API endpoint and authentication, and select the target workspace.
First query the workflow job list to obtain the workflow ID and source job execution ID.
Request¶
Shell
curl "$CLOUDSIGMA_API_BASE/workflow/v2/workflow-apps/$WORKFLOW_ID/executions/$EXECUTION_ID/rerun-branches" \
-H "X-API-Key: $CLOUDSIGMA_API_KEY" \
-H "X-Workspace-ID: $WORKSPACE_ID"
Path parameters
| Field | Type | Description |
|---|---|---|
workflow_id | string | Workflow ID. |
execution_id | string | Source job ID. |
Successful response¶
JSON
{
"code": "OK",
"msg": "OK",
"data": {
"reruns": [
{
"rerun_id": "rerun-001",
"branch_id": "branch-001",
"case_id": "case-001",
"source_execution_id": "exec-001",
"node_key": "root.load",
"mode": "continue_from_node",
"status": "running"
}
]
}
}
| Field | Type | Description |
|---|---|---|
code | string | `OK` when successful. |
msg | string | `OK` when successful. |
data.reruns[] | array | Rerun branch list. |
data.reruns[].rerun_id | string | Rerun ID. |
data.reruns[].branch_id | string | Branch ID. |
data.reruns[].case_id | string | Case ID. |
data.reruns[].source_execution_id | string | Source job ID; returned only if there is a value. |
data.reruns[].node_key | string | Rerun starting point; only returned if there is a value. |
data.reruns[].mode | string | Rerun mode. |
data.reruns[].status | string | Branch status. |
data.reruns[].error | string | Branch error information; only returned when there is an error. |
Error response¶
JSON
{
"code": "ErrNotFound",
"msg": "资源不存在",
"data": null
}
| Field | Type | Description |
|---|---|---|
code | string | Error code. |
msg | string | Readable error message. |
data | null | `null` in an error response. |
Follow-up operations¶
Use data.reruns[].rerun_id query workflow rerun details.
Last updated on