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.

HTTP
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.

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

Parameter

Type

Required

Description

workflow_id

string

Yes

workflow ID, located in the request path.

execution_id

string

Yes

Source job ID, located in the request path.

node_key

string

Yes

Node key for rerun starting point.

Request body

Field

Type

Required

Description

mode

string

Yes

Rerun mode. Must be taken from available means of planned return. Value: continue_from_node, continue_from_node_with_overrides.

source_node_execution_id

string

Yes

Schedule selected source node execution ID. Cannot be empty.

expected_rerun_contract_hash

string

Yes

The rerun configuration hash returned by the plan. It must be passed in as it is and cannot be empty.

values

object or null

No

Enter override values at run time. Only available in continue_from_node_with_overrides mode.

config_override

object or null

No

Node configuration override value. Only continue_from_node_with_overrides mode is available and cannot be input at the same time as values.

reason

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

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": "rerun_current_and_downstream",
      "status": "running"
    }
  }
}

Field

Type

Description

data.rerun

object

New rerun branch.

data.rerun.rerun_id

string

Rerun plan ID.

data.rerun.branch_id

string

Rerun branch ID.

data.rerun.case_id

string

Run ID.

data.rerun.source_branch_id

string

Source branch ID.

data.rerun.new_workflow_execution_id

string

New workflow execution ID.

data.rerun.source_execution_id

string

Source execution ID.

data.rerun.source_case_id

string

Source run ID.

data.rerun.node_key

string

Node key.

data.rerun.source_node_execution_id

string

Source node execution ID.

data.rerun.mode

string

processing mode. Value: rerun_current_and_downstream, rerun_downstream_with_revisions.

data.rerun.status

string

status. Values: initializing, ready, running, paused, succeeded, failed, cancelled, empty string.

data.rerun.error

string

error message.

data.rerun.created_at

string

Creation time.

data.rerun.updated_at

string

Update time.

data.start_error

string

Error message at startup. Returned if there is a value.

data.refresh_error

string

Error when refreshing branch information. Returned if there is a value.

Error response

JSON
{
  "code": "ErrParamInvalid",
  "msg": "请求参数无效"
}

Field

Type

Description

code

string

error code.

msg

string

Readable error message.

Last updated on