Windmill · Arazzo Workflow
Windmill Run a Script and Await its Result
Version 1.0.0
Trigger a script by path, poll the job until it completes, then read the result.
View Spec
View on GitHub
AutomationInternal ToolsOpen SourceProCode API CompositionScriptsWebhooksWorkflow EngineWorkflowsArazzoWorkflows
Provider
Workflows
run-script-and-await-result
Run a Windmill script by path and wait for the asynchronous job result.
Resolves the script, starts an asynchronous run, polls until the job is completed, then returns the result and success status of the completed job.
1
getScript
getScriptByPath
Fetch the script metadata to confirm the path exists and to surface the expected argument schema before running it.
2
runScript
runScriptByPath
Submit an asynchronous run of the script by path. The response body is the newly created job UUID as plain text.
3
pollResult
getCompletedJobResultMaybe
Poll the completed-result-maybe endpoint. While the job is still running the completed flag is false, so the flow loops back to poll again; once completed it proceeds to read the full job record.
4
getResult
getCompletedJob
Read the full completed job record to capture the result payload, success flag and execution timing.