View workflow rerun details

Read the status and associated execution information of a workflow rerun branch.

HTTP
GET $CLOUDSIGMA_API_BASE/workflow/v2/workflow-apps/{workflow_id}/executions/{execution_id}/reruns/{rerun_id}

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

Confirm that the current identity has read permissions for the target workflow. The source execution must belong to the current workflow and workspace.

Request parameters

Replace $WORKFLOW_ID, $EXECUTION_ID, $RERUN_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/reruns/$RERUN_ID" \
  -H "X-API-Key: $CLOUDSIGMA_API_KEY" \
  -H "X-Workspace-ID: $WORKSPACE_ID"

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.

rerun_id

string

Yes

Rerun ID.

Successful response

JSON
{
  "code": "OK",
  "msg": "OK",
  "data": {
    "rerun": {
      "rerun_id": "rerun-001",
      "branch_id": "branch-001",
      "case_id": "case-001",
      "source_branch_id": "branch-000",
      "new_workflow_execution_id": "exec-002",
      "source_execution_id": "exec-001",
      "node_key": "root.load",
      "mode": "rerun_current_and_downstream",
      "status": "running"
    }
  }
}

Field

Type

Description

data.rerun

object

Rerun branch information.

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.

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.

When you need to stop the current branch, use the same set of identifiers cancel the workflow and rerun. When the new job ID is returned, you can query workflow job details.

Error response

The business error response does not contain data.

JSON
{
  "code": "ErrNotFound",
  "msg": "资源不存在"
}

Field

Type

Description

code

string

error code.

msg

string

Readable error message.

Last updated on