v5
latestOpenAPI 3.1.02026-08-025631,1012.8 MBCluster Executions
Cancel Execution
Cancel a pending or processing cluster execution.
This cancels the Ray job (if running) and marks the execution as CANCELED.
Useful for:
- Cleaning up orphaned executions where the Ray job was never submitted
- Stopping long-running clustering jobs
- Handling executions stuck in pending/processing state
Only works for executions in 'pending' or 'processing' status.
Returns an error if the execution is already 'completed', 'failed', or 'canceled'.
post/v1/clusters/{cluster_id}/executions/{run_id}/cancel
Path parameters
cluster_idstring required
Cluster ID
Cluster ID
run_idstring required
Run ID to cancel
Run ID to cancel
Response
Successful Response
{"stackTrail":"paths:/v1/clusters/{cluster_id}/executions/{run_id}/cancel:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}