Cluster 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"}
Changes
Changed in 1 of the 34 revisions of this API.1
- ○
the endpoint scheme security
BearerAuth AND NamespaceHeaderwas added to the APIapi-security-added
This revision also has 3 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○