Windmill · Arazzo Workflow
Windmill Run a Script with a Cancel Guard
Version 1.0.0
Run a script, inspect the job, and cancel it if it is still queued or running.
View Spec
View on GitHub
AutomationInternal ToolsOpen-SourcePro-Code-API-CompositionScriptsWebhookWorkflow EngineWorkflowsArazzoWorkflows
Provider
Workflows
run-script-with-cancel-guard
Run a script and cancel the job if it has not completed when inspected.
Starts an asynchronous script run, inspects the job, and either reads the completed result or cancels the still-pending job with a reason.
1
runScript
Submit an asynchronous run of the script by path. The response body is the new job UUID.
2
inspectJob
Read the job record. The type field discriminates a CompletedJob from a still-pending QueuedJob, which drives the cancel-or-read branch.
3
4
cancelJob
Cancel the still-queued or running job with the supplied reason. The response body is a confirmation string.
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.