Cancel Pipeline Run | Dadosfera Maestro Platform API

Cancel a running pipeline execution

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Overview

Cancels an in-progress pipeline run. Use this endpoint when you need to stop an execution that is taking too long, consuming unexpected resources, or was triggered by mistake.

Path Parameters

ParameterTypeDescription
pipelineIdstringThe pipeline identifier
runIdstringThe pipeline run identifier to be cancelled

Example

Cancel a Running Execution

POST /platform/pipeline/1b33ad2f_33d3_4837_9eeb_83c82c8b909d/pipeline_run/b3c4d5e6_7f8a_9b0c_1d2e_3f4a5b6c7d8e/cancel

Response (200 OK):

{
  "detail": "Pipeline run cancelled successfully.",
  "airflow_status": true
}

Error Responses

404 Not Found

{
  "msg": "Pipeline run not found."
}

409 Conflict — Run Not Cancellable

Returned when the run is already in a terminal state (SUCCESS, FAILED, or CANCELLED).

{
  "msg": "Pipeline run is not in a cancellable state.",
  "current_status": "SUCCESS"
}

500 Internal Server Error

{
  "msg": "There was an error cancelling the pipeline run.",
  "error": "Unexpected error"
}

Response Fields

FieldTypeDescription
detailstringHuman-readable message describing the result
airflow_statusbooleanWhether Airflow successfully processed the cancellation request

When to Cancel

Run StatusCan Cancel?
RUNNINGYes
SUCCESSNo — terminal state
FAILEDNo — terminal state
CANCELLEDNo — already cancelled

Use Cases

Cancel a Long-Running Execution

# 1. Check the current status
GET /platform/pipeline/1b33ad2f_33d3_4837_9eeb_83c82c8b909d/pipeline_run/b3c4d5e6_7f8a_9b0c_1d2e_3f4a5b6c7d8e

# 2. If status is RUNNING, cancel it
POST /platform/pipeline/1b33ad2f_33d3_4837_9eeb_83c82c8b909d/pipeline_run/b3c4d5e6_7f8a_9b0c_1d2e_3f4a5b6c7d8e/cancel

Cancel and Re-trigger a Run

# Cancel the current run
POST /platform/pipeline/{pipelineId}/pipeline_run/{runId}/cancel

# Then re-execute the pipeline
POST /platform/pipeline/execute

Notes

Path Params
string
required
string
required
Responses

404

Pipeline run not found

409

Pipeline run is not in a cancellable state

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json