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
getWorkflowRun
Fetch the run to confirm it exists and read its current status before attempting cancellation.
2
cancelRun
cancelWorkflowRun
Request a normal cancellation of the run. The API returns 202 to acknowledge the cancellation request.
3
pollRun
getWorkflowRun
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
forceCancelWorkflowRun
Force cancel the run when the normal cancel request did not take effect. The API returns 202 to acknowledge the force cancellation request.