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.

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

Shell
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

workflow_id

string

Yes

workflow ID.

execution_id

string

Yes

Source job ID, located in the request path.

node_key

string

Yes

Node key for rerun starting point.

Query parameters

Parameter

Type

Required

Description

source_node_execution_id

string

No

Selected source node execution ID.

Successful response

JSON
{
  "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

data.plan

object

Rerun the plan.

data.plan.workflow_id

string

workflow ID.

data.plan.source_execution_id

string

Source execution ID.

data.plan.source_case_id

string

Source run ID.

data.plan.source_branch_id

string

Source branch ID.

data.plan.node_key

string

Node key.

data.plan.source_node_execution_id

string

Source node execution ID.

data.plan.rerun_contract_hash

string

Rerun configuration summary.

data.plan.node_status

string

Node status.

data.plan.available_modes

array of string

Rerun mode available.

data.plan.overrideable_config_schema

array of object

Configuration structures can be overridden.

data.plan.overrideable_config_schema[].path

string

path.

data.plan.overrideable_config_schema[].type

string

type.

data.plan.overrideable_config_schema[].default

any

Default value.

data.plan.overrideable_config_schema[].exposure

string

Display method.

data.plan.overrideable_config_schema[].depends_on

object

Validity depends on conditions.

data.plan.overrideable_config_schema[].depends_on.path

string

path.

data.plan.overrideable_config_schema[].depends_on.value

any

Value.

data.plan.overrideable_config_schema[].enum

array

enumeration value.

data.plan.overrideable_config_schema[].placeholder_key

string

Enter the prompt key.

data.plan.overrideable_config_schema[].example

any

Example value.

data.plan.overrideable_config_schema[].pattern

string

Format rules.

data.plan.affected_downstream_nodes

array of object

Affected downstream nodes.

data.plan.affected_downstream_nodes[].node_key

string

Node key.

data.plan.affected_downstream_nodes[].node_type

string

Node type.

data.plan.validation

object

Verification results.

data.plan.validation.ok

boolean

Verification passed.

data.plan.validation.code

string

code.

data.plan.validation.message

string

Message content.

data.plan.validation.reasons

array of string

List of reasons.

data.plan.candidates

array of object

Candidates.

data.plan.candidates[].source_node_execution_id

string

Source node execution ID.

data.plan.candidates[].workitem_id

string

Work item ID.

data.plan.candidates[].parallel_index

integer

Parallel fragmentation sequence number. Not less than -2147483648. Not larger than 2147483647.

data.plan.candidates[].status

string

status.

data.plan.candidates[].error

string

error message.

data.plan.candidates[].duration_ms

integer

The number of milliseconds it took.

data.plan.candidates[].last_updated_at

string

Last updated time.

data.plan.current_config

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.

JSON
{
  "code": "ErrParamInvalid",
  "msg": "无法生成重新运行计划",
  "data": null
}

Field

Type

Description

code

string

error code.

msg

string

Readable error message.

data

null

The error response is null.

Last updated on