Cancel a run
curl --request POST \
--url https://api.edges.run/v1/runs/{run_uid}/cancel \
--header 'X-API-Key: <api-key>'const options = {method: 'POST', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.edges.run/v1/runs/{run_uid}/cancel', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.edges.run/v1/runs/{run_uid}/cancel"
headers = {"X-API-Key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text){
"id": 123,
"uid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"scheduled_run_name": "<string>",
"action_id": 123,
"action_name": "<string>",
"retry_count": 0,
"user_uid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"workspace_uid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"execution_mode": "LIVE",
"last_error": {
"label": "<string>",
"message": "<string>",
"params": {}
},
"parameters": {
"sync_mode": "full"
},
"callback": {
"url": "<string>"
},
"status": "CREATED",
"output_count": 0,
"scheduled_run_uid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"started_at": "<string>",
"finished_at": "<string>",
"created_at": "<string>",
"updated_at": "<string>"
}{
"error_label": "<string>",
"error_scope": "input",
"error_ref": "ERR-12345",
"message": "<string>",
"status_code": 123,
"params": {},
"data": {}
}{
"error_label": "<string>",
"error_scope": "input",
"error_ref": "ERR-12345",
"message": "<string>",
"status_code": 123,
"params": {},
"data": {}
}Runs
Cancel a Run
Cancel a run that is scheduled or in progress, stopping any inputs that have not yet been processed.
POST
/
runs
/
{run_uid}
/
cancel
Cancel a run
curl --request POST \
--url https://api.edges.run/v1/runs/{run_uid}/cancel \
--header 'X-API-Key: <api-key>'const options = {method: 'POST', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.edges.run/v1/runs/{run_uid}/cancel', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.edges.run/v1/runs/{run_uid}/cancel"
headers = {"X-API-Key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text){
"id": 123,
"uid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"scheduled_run_name": "<string>",
"action_id": 123,
"action_name": "<string>",
"retry_count": 0,
"user_uid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"workspace_uid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"execution_mode": "LIVE",
"last_error": {
"label": "<string>",
"message": "<string>",
"params": {}
},
"parameters": {
"sync_mode": "full"
},
"callback": {
"url": "<string>"
},
"status": "CREATED",
"output_count": 0,
"scheduled_run_uid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"started_at": "<string>",
"finished_at": "<string>",
"created_at": "<string>",
"updated_at": "<string>"
}{
"error_label": "<string>",
"error_scope": "input",
"error_ref": "ERR-12345",
"message": "<string>",
"status_code": 123,
"params": {},
"data": {}
}{
"error_label": "<string>",
"error_scope": "input",
"error_ref": "ERR-12345",
"message": "<string>",
"status_code": 123,
"params": {},
"data": {}
}uid is used for all the endpoints and Run manipulation.The id is an internal identifier returned to smooth and improve speed and accuracy if you have questions about your runs you will want
to submit to the team.This endpoint only applies to async and schedule execution modes. Live runs cannot be canceled as they are synchronous.
Canceling a run will stop all pending operations. Results already processed remain available via Get Run Outputs even when the run ends as
STOPPED. No further callbacks will be sent for this run.Response
Cancel the run
Cancel the run
