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.
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.
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 |
|---|---|---|---|
|
string |
Yes |
A composite identifier composed of the root asset ID and the source run ID, encoded as a path segment. |
|
string |
Yes |
Full node path, such as root.prepare. |
|
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 |
|---|---|---|---|
|
string or null |
No |
Rerun mode. It can only be filled in as rerun_downstream_with_revisions. |
|
integer or null |
No |
The source takes effect to collect version records and does not perform current head version comparison. |
|
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¶
{
"artifact_id": "asset-001:case-001",
"node_id": "root.prepare",
"node_execution_id": "",
"rerun_id": "",
"branch_id": "",
"case_id": "",
"status": "initializing"
}
Field |
Type |
Description |
|---|---|---|
|
string |
Compound product identification. |
|
string |
Full node path. |
|
string |
Node execution ID. |
|
string |
Rerun plan ID. |
|
string |
Rerun branch ID. |
|
string |
Run ID. |
|
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¶
{
"code": "ErrParamInvalid",
"msg": "请求参数无效",
"data": null
}
Field |
Type |
Required |
Description |
|---|---|---|---|
|
string |
No |
error code. |
|
string |
No |
Readable error message. |
|
null |
No |
null in error response. |