Rerun processing node¶
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}/rerun
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, $CLOUDSIGMA_API_KEY, $WORKSPACE_ID in the example with actual values.
curl -X POST "$CLOUDSIGMA_API_BASE/lineage/artifacts/$ARTIFACT_ID/nodes/$NODE_ID/rerun" \
-H "X-API-Key: $CLOUDSIGMA_API_KEY" \
-H "X-Workspace-ID: $WORKSPACE_ID" \
-H "Content-Type: application/json" \
-d '{
"mode": "rerun_current_and_downstream"
}'
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. |
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. When filling in, it can only be rerun_current_and_downstream. |
|
object |
No |
Override node configuration. |
|
object |
No |
Override run input. |
|
object |
No |
Override run variables. |
|
object or null |
No |
Notification configuration. |
|
string |
When the object is provided |
type. Fixed to “http”. |
|
string |
When the object is provided |
address. Cannot be empty. |
|
string or null |
No |
HTTP method. |
|
object or null |
No |
Request header mapping. |
|
integer or null |
No |
Timeout duration. Not less than 0. Not larger than 2147483647. |
|
string |
No |
Worker ID. Value: empty string, |
|
string |
No |
Message content. Value: empty string, |
|
array of string or null |
No |
The status of the node that needs to be notified. |
|
array of string or null |
No |
The node ID that needs to be notified. |
|
array of string |
When the object is provided |
The workflow status that needs to be notified. At least 1 items. |
Configuration overrides are applied as dotted paths, and input and variable overrides are transformed as their respective objects. Omission or null is not equivalent to explicit {}. Overwriting does not modify the output already generated by the preceding node.
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. |