View node rerun plan¶
Check available reruns from the specified node, affected nodes, and verification results. Create a rerun only if the plan passes verification.
GET $CLOUDSIGMA_API_BASE/workflow/v2/workflow-apps/{workflow_id}/executions/{execution_id}/nodes/{node_key}/rerun-plan
Before you call¶
Configure the CloudSigma regional endpoint and authentication before calling. The endpoint, credentials, workspace, and resource IDs must belong to the same region. First query the workflow job node and select the node to be used as the starting point for re-running. Prepare personal access token and target workspace ID that can access the target workspace.
The source execution must have ended and the run graph structure must be supported by rerun mode. The available modes depend on the node and its downstream relationships, and not every node can be rerun.
Confirm that the current identity has permission to run the target workflow and access permissions to the input resources.
Request parameters¶
Replace $WORKFLOW_ID, $EXECUTION_ID, $NODE_KEY, $SOURCE_NODE_EXECUTION_ID, $CLOUDSIGMA_API_KEY, $WORKSPACE_ID in the example with actual values.
curl "$CLOUDSIGMA_API_BASE/workflow/v2/workflow-apps/$WORKFLOW_ID/executions/$EXECUTION_ID/nodes/$NODE_KEY/rerun-plan?source_node_execution_id=$SOURCE_NODE_EXECUTION_ID" \
-H "X-API-Key: $CLOUDSIGMA_API_KEY" \
-H "X-Workspace-ID: $WORKSPACE_ID"
Parameter |
Type |
Required |
Description |
|---|---|---|---|
|
string |
Yes |
workflow ID. |
|
string |
Yes |
Source job ID, located in the request path. |
|
string |
Yes |
Node key for rerun starting point. |
Query parameters
Parameter |
Type |
Required |
Description |
|---|---|---|---|
|
string |
No |
Selected source node execution ID. |
Successful response¶
{
"code": "OK",
"msg": "OK",
"data": {
"plan": {
"workflow_id": "wf-001",
"source_execution_id": "exec-001",
"source_case_id": "case-001",
"node_key": "root.load",
"source_node_execution_id": "node-exec-001",
"rerun_contract_hash": "sha256:0000000000000000000000000000000000000000000000000000000000000000",
"available_modes": [
"continue_from_node"
],
"validation": {
"ok": true
}
}
}
}
Field |
Type |
Description |
|---|---|---|
|
object |
Rerun the plan. |
|
string |
workflow ID. |
|
string |
Source execution ID. |
|
string |
Source run ID. |
|
string |
Source branch ID. |
|
string |
Node key. |
|
string |
Source node execution ID. |
|
string |
Rerun configuration summary. |
|
string |
Node status. |
|
array of string |
Rerun mode available. |
|
array of object |
Configuration structures can be overridden. |
|
string |
path. |
|
string |
type. |
|
any |
Default value. |
|
string |
Display method. |
|
object |
Validity depends on conditions. |
|
string |
path. |
|
any |
Value. |
|
array |
enumeration value. |
|
string |
Enter the prompt key. |
|
any |
Example value. |
|
string |
Format rules. |
|
array of object |
Affected downstream nodes. |
|
string |
Node key. |
|
string |
Node type. |
|
object |
Verification results. |
|
boolean |
Verification passed. |
|
string |
code. |
|
string |
Message content. |
|
array of string |
List of reasons. |
|
array of object |
Candidates. |
|
string |
Source node execution ID. |
|
string |
Work item ID. |
|
integer |
Parallel fragmentation sequence number. Not less than -2147483648. Not larger than 2147483647. |
|
string |
status. |
|
string |
error message. |
|
integer |
The number of milliseconds it took. |
|
string |
Last updated time. |
|
object |
Current configuration path mapping. |
After the plan passes the verification, the source node execution ID, available modes, and rerun configuration hash are saved. Rerun workflow from the specified node with these values.
Error response¶
When the source execution status or rerun plan conflicts, HTTP 409 may be returned.
validation is an optional response field. Currently, a verification failure returns an HTTP error, and you cannot just check for ok=false in the successful response.
{
"code": "ErrParamInvalid",
"msg": "无法生成重新运行计划",
"data": null
}
Field |
Type |
Description |
|---|---|---|
|
string |
error code. |
|
string |
Readable error message. |
|
null |
The error response is |