post
https://maestro.dadosfera.ai/platform/pipeline//pipeline_run//cancel
Cancel a running pipeline execution
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
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
| Parameter | Type | Description |
|---|---|---|
pipelineId | string | The pipeline identifier |
runId | string | The 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
| Field | Type | Description |
|---|---|---|
detail | string | Human-readable message describing the result |
airflow_status | boolean | Whether Airflow successfully processed the cancellation request |
When to Cancel
| Run Status | Can Cancel? |
|---|---|
RUNNING | Yes |
SUCCESS | No — terminal state |
FAILED | No — terminal state |
CANCELLED | No — 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/cancelCancel 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/executeNotes
- Only runs with
last_status: RUNNINGcan be cancelled - After cancellation, the
last_statustransitions toCANCELLED - To check the current status of a run before cancelling, use GET /platform/pipeline/:pipelineId/pipeline_run/:runId
- To view the full execution history, use GET /platform/pipeline/:pipelineId/pipeline_run
404Pipeline run not found
409Pipeline run is not in a cancellable state
