Run a Flow and Await its Result
A 4-step recipe with Windmill. We can help you get access.
Recipe · 4 steps
Run a Flow and Await its Result
with Windmill
Run a Windmill flow by path and wait for the asynchronous job result.
- Fetch the flow metadata to confirm the path exists before running it.
- Submit an asynchronous run of the flow by path. The response body is the newly created job UUID as plain text.
- Poll the job-updates endpoint. While the job is still running the completed flag is false and the flow loops back to poll again; once completed it proceeds to read the result.
- Read the completed job result once the flow run has finished.
What you'll need to have ready
- token: Windmill API token presented as a Bearer credential.
- workspace: The Windmill workspace id.
- path: The flow path to run (e.g. "f/examples/my_flow").
- args: The argument map passed to the flow as its inputs.
For your developer
Arazzo workflow windmill:run-flow-and-await-result, 4 operations: getFlowByPath → runFlowByPath → getJobUpdates → getCompletedJobResult. Specs on APIs.io.