GitHub Actions · Arazzo Workflow
GitHub Actions Cancel a Workflow Run and Confirm
Version 1.0.0
Get a run, request cancellation, poll until it is no longer in progress, and force-cancel if it gets stuck.
Provider
Workflows
cancel-run
Cancel a run and confirm it stopped, force-cancelling if necessary.
Reads the run, requests cancellation, polls until it is no longer in progress, and force-cancels when the normal cancel does not take effect.
1
getRun
Fetch the run to confirm it exists and read its current status before attempting cancellation.
2
cancelRun
Request a normal cancellation of the run. The API returns 202 to acknowledge the cancellation request.
3
pollRun
Poll the run until it is no longer in_progress. Loop while still running; force-cancel if it remains queued and end once it has stopped.
4
forceCancelRun
Force cancel the run when the normal cancel request did not take effect. The API returns 202 to acknowledge the force cancellation request.
Source API Descriptions
Arazzo Workflow Specification
Work with this as data
Every workflow here is available over the APIs.io API and to AI agents over MCP.