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
runScriptByPath
Submit an asynchronous run of the script by path. The response body is the new job UUID.
2
inspectJob
getJob
Read the job record. The type field discriminates a CompletedJob from a still-pending QueuedJob, which drives the cancel-or-read branch.
3
readCompleted
getCompletedJob
Read the completed job record when the run already finished.
4
cancelJob
cancelQueuedJob
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.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for arazzo workflows
4 MCP tools reach this
find_arazzoBrowse and filter every workflow in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
This workflow
curl "https://apis.io/api/v1/arazzo/windmill-run-script-with-timeout-cancel-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.