Rerun processing node with specified output version

Create a rerun plan and branch for the specified product node. The current interface has only been created and will not automatically start execution.

HTTP
POST $CLOUDSIGMA_API_BASE/lineage/artifacts/{artifact_id}/nodes/{node_id}/output-emissions/{target_output_emission_id}/rerun-with-revisions

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. Prepare personal access token and target workspace ID that can access the target workspace.

Request body

Replace $ARTIFACT_ID, $NODE_ID, $TARGET_OUTPUT_EMISSION_ID, $CLOUDSIGMA_API_KEY, $WORKSPACE_ID in the example with actual values.

Shell
curl -X POST "$CLOUDSIGMA_API_BASE/lineage/artifacts/$ARTIFACT_ID/nodes/$NODE_ID/output-emissions/$TARGET_OUTPUT_EMISSION_ID/rerun-with-revisions" \
  -H "X-API-Key: $CLOUDSIGMA_API_KEY" \
  -H "X-Workspace-ID: $WORKSPACE_ID" \
  -H "Content-Type: application/json" \
  -d '{
  "mode": "rerun_downstream_with_revisions",
  "source_effective_set_version": 4,
  "selected_revisions_json": {
    "block-001": {
      "revision_id": "rev-002"
    }
  }
}'

Parameter

Type

Required

Description

artifact_id

string

Yes

A composite identifier composed of the root asset ID and the source run ID, encoded as a path segment.

node_id

string

Yes

Full node path, such as root.prepare.

target_output_emission_id

string

Yes

Target output launch ID.

artifact_id is a composite identifier composed of the root asset ID and the source run ID, for example, asset-001:case-001. Encode the complete value as a path segment. node_id uses the full node path, such as root.prepare, and cannot be replaced by an arbitrary display name.

Request body

Field

Type

Required

Description

mode

string or null

No

Rerun mode. It can only be filled in as rerun_downstream_with_revisions.

source_effective_set_version

integer or null

No

The source takes effect to collect version records and does not perform current head version comparison.

selected_revisions_json

object

Yes

The legal JSON value of the selected revision, which has not yet been processed for execution.

selected_revisions_json is required and can be filled in as a valid JSON object, array, scalar or null. Do not re-encode JSON objects into strings.

Currently only these values are verified and saved, rerunning the input has not yet used the selected revision. A successful save does not mean that these revisions have been used for execution.

source_effective_set_version is currently only used as a record value and is not compared with the latest effective version. The selected emission still needs to belong to the target node, but this parameter does not prevent out-of-date revisions from being used.

Successful response

JSON
{
  "artifact_id": "asset-001:case-001",
  "node_id": "root.prepare",
  "node_execution_id": "",
  "rerun_id": "",
  "branch_id": "",
  "case_id": "",
  "status": "initializing"
}

Field

Type

Description

data.artifact_id

string

Compound product identification.

data.node_id

string

Full node path.

data.node_execution_id

string

Node execution ID.

data.rerun_id

string

Rerun plan ID.

data.branch_id

string

Rerun branch ID.

data.case_id

string

Run ID.

data.status

string

status. Fixed to “initializing”.

Use the returned rerun_id query branch. There is currently no fully public process for launching this branch, do not create it again in lieu of launching it.

Error response

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

Field

Type

Required

Description

code

string

No

error code.

msg

string

No

Readable error message.

data

null

No

null in error response.

Last updated on