Rerun from specified node¶
Rerun the job starting from the specified node. When called, a rerun branch is created and started. Please continue to check the branch details to confirm the status.
POST $CLOUDSIGMA_API_BASE/workflow/v2/workflow-apps/{workflow_id}/executions/{execution_id}/nodes/{node_key}/reruns
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 node and re-run the plan, confirm that the plan passes the verification and select the available method. Prepare personal access token and target workspace ID with workflow running permissions.
Request body¶
Replace $WORKFLOW_ID, $EXECUTION_ID, $NODE_KEY, $CLOUDSIGMA_API_KEY, $WORKSPACE_ID, $SOURCE_NODE_EXECUTION_ID, $RERUN_CONTRACT_HASH in the example with actual values.
curl -X POST "$CLOUDSIGMA_API_BASE/workflow/v2/workflow-apps/$WORKFLOW_ID/executions/$EXECUTION_ID/nodes/$NODE_KEY/reruns" \
-H "X-API-Key: $CLOUDSIGMA_API_KEY" \
-H "X-Workspace-ID: $WORKSPACE_ID" \
-H 'Content-Type: application/json' \
-d '{
"mode": "continue_from_node",
"source_node_execution_id": "'"$SOURCE_NODE_EXECUTION_ID"'",
"expected_rerun_contract_hash": "'"$RERUN_CONTRACT_HASH"'"
}'
Parameter |
Type |
Required |
Description |
|---|---|---|---|
|
string |
Yes |
workflow ID, located in the request path. |
|
string |
Yes |
Source job ID, located in the request path. |
|
string |
Yes |
Node key for rerun starting point. |
Request body
Field |
Type |
Required |
Description |
|---|---|---|---|
|
string |
Yes |
Rerun mode. Must be taken from available means of planned return. Value: |
|
string |
Yes |
Schedule selected source node execution ID. Cannot be empty. |
|
string |
Yes |
The rerun configuration hash returned by the plan. It must be passed in as it is and cannot be empty. |
|
object or null |
No |
Enter override values at run time. Only available in |
|
object or null |
No |
Node configuration override value. Only |
|
string or null |
No |
Custom reasons are currently being received but not saved. |
reason is an optional field received by the current interface, but is not used to save custom reasons. This cannot be used to determine that the reason for cancellation or rerun has been recorded.
null is not equivalent to {}: omitting or null retains the corresponding override source, {} is an explicit null object. Configuration overrides are applied by allowed paths. The form values are shallowly merged with the default values after being bound by the form. Mutually exclusive input methods cannot be submitted at the same time.
Use the source version and rerun configuration summary returned by the plan as is. When created, the source version is checked for changes. Repeated creation may produce multiple branches, do not automatically retry.
values only overwrites the inputs and variables after form binding, and does not overwrite the calculated output of the previous node. The inputs that can be started are also constrained by the production source of the rungraph startup token.
Successful response¶
{
"code": "OK",
"msg": "OK",
"data": {
"rerun": {
"rerun_id": "rerun-001",
"branch_id": "branch-001",
"case_id": "case-001",
"source_execution_id": "exec-001",
"node_key": "root.load",
"source_node_execution_id": "node-exec-001",
"mode": "rerun_current_and_downstream",
"status": "running"
}
}
}
Field |
Type |
Description |
|---|---|---|
|
object |
New rerun branch. |
|
string |
Rerun plan ID. |
|
string |
Rerun branch ID. |
|
string |
Run ID. |
|
string |
Source branch ID. |
|
string |
New workflow execution ID. |
|
string |
Source execution ID. |
|
string |
Source run ID. |
|
string |
Node key. |
|
string |
Source node execution ID. |
|
string |
processing mode. Value: |
|
string |
status. Values: |
|
string |
error message. |
|
string |
Creation time. |
|
string |
Update time. |
|
string |
Error message at startup. Returned if there is a value. |
|
string |
Error when refreshing branch information. Returned if there is a value. |
Error response¶
{
"code": "ErrParamInvalid",
"msg": "请求参数无效"
}
Field |
Type |
Description |
|---|---|---|
|
string |
error code. |
|
string |
Readable error message. |