View workflow rerun details¶
Read the status of a workflow rerun branch.
HTTP
GET $CLOUDSIGMA_API_BASE/workflow/v2/workflow-apps/{workflow_id}/executions/{execution_id}/reruns/{rerun_id}
Before you call this API¶
Configure the regional API endpoint and authentication, and select the target workspace.
First query the workflow rerun list to obtain the rerun ID.
Request¶
Shell
curl "$CLOUDSIGMA_API_BASE/workflow/v2/workflow-apps/$WORKFLOW_ID/executions/$EXECUTION_ID/reruns/$RERUN_ID" \
-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. |
rerun_id | string | Rerun ID. |
Successful response¶
JSON
{
"code": "OK",
"msg": "OK",
"data": {
"rerun": {
"rerun_id": "rerun-001",
"branch_id": "branch-001",
"case_id": "case-001",
"source_branch_id": "branch-000",
"new_workflow_execution_id": "exec-002",
"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.rerun.rerun_id | string | Rerun ID. |
data.rerun.branch_id | string | Branch ID. |
data.rerun.case_id | string | Case ID. |
data.rerun.source_branch_id | string | Source branch ID; only returned if there is a value. |
data.rerun.new_workflow_execution_id | string | New job ID; returned only if there is a value. |
data.rerun.source_execution_id | string | Source job ID; returned only if there is a value. |
data.rerun.node_key | string | Rerun starting point; only returned if there is a value. |
data.rerun.mode | string | Rerun mode. |
data.rerun.status | string | Current branch status. |
data.rerun.error | string | Branch error information; only returned when there is an error. |
data.start_error | string | Start error; only returned if there is a value. |
data.refresh_error | string | Refresh error; only returned if there is a value. |
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¶
When you need to stop the branch cancel the workflow and rerun.
Last updated on