Rerun from specified node

Creates a rerun branch from the specified node where the job has been executed. Successful creation does not mean that the branch is completed; please check the re-run details to confirm the status.

HTTP
POST $CLOUDSIGMA_API_BASE/workflow/v2/workflow-apps/{workflow_id}/executions/{execution_id}/nodes/{node_key}/reruns

Before you call this API

Configure the regional API endpoint and authentication, and select the target workspace.

First View node rerun plan, and save its rerun_contract_hash and node execution ID if needed.

Request

Shell
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",
    "expected_rerun_contract_hash": "'"$RERUN_CONTRACT_HASH"'"
  }'

Request body

FieldTypeDescription
workflow_idstringWorkflow ID.
execution_idstringSource job ID.
node_keystringThe node key to start the rerun from.
modestringRerun mode; must be taken from planned `available_modes`.
source_node_execution_idstringThe selected source node execution ID.
expected_rerun_contract_hashstringThe contract hash returned by the plan, used to avoid using expired plans.
valuesobjectRuntime input override value.
config_overrideobjectNode configuration override value.
reasonstringReason for rerun.

Successful response

JSON
{
  "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": "continue_from_node",
      "status": "running"
    }
  }
}
FieldTypeDescription
codestring`OK` when successful.
msgstring`OK` when successful.
data.rerun.rerun_idstringRerun ID.
data.rerun.branch_idstringNew branch ID.
data.rerun.case_idstringThe case ID of the new branch.
data.rerun.source_execution_idstringSource job ID.
data.rerun.node_keystringThe node key of the rerun starting point.
data.rerun.source_node_execution_idstringSource node execution ID.
data.rerun.modestringThe actual rerun mode used.
data.rerun.statusstringNew branch status.
data.start_errorstringError message when starting; only returned if there is a value.
data.refresh_errorstringError message when refreshing; only returned if there is a value.

Error response

JSON
{
  "code": "contract_drift_detected",
  "msg": "重新运行计划已变化",
  "data": null
}
FieldTypeDescription
codestringError code.
msgstringReadable error message.
datanull`null` in an error response.

Follow-up operations

View workflow rerun details confirms branch status.

Last updated on