Run an App and Poll for Completion
A 2-step recipe with Dust. We can help you get access.
Recipe · 2 steps
Run an App and Poll for Completion
with Dust
Create an app run and poll the run until it completes.
- Create a non-blocking app run with the pinned specification hash and supplied inputs.
- Fetch the run and inspect its status. Continue polling while the run is still running, then branch on the terminal status.
What you'll need to have ready
- apiToken: Dust API key used as the Bearer token.
- wId: The workspace identifier.
- spaceId: The space identifier containing the app.
- aId: The app identifier.
- specificationHash: Hash of the app specification to run against.
- config: Configuration object for the app run (e.g. model settings).
- inputs: Array of input objects passed to the app.
For your developer
Arazzo workflow dust-tt:run-app-and-poll, 2 operations: {$sourceDescriptions.appsApi.url}#/paths/~1api~1v1~1w~1{wId}~1spaces~1{spaceId}~1apps~1{aId}~1runs/post → {$sourceDescriptions.appsApi.url}#/paths/~1api~1v1~1w~1{wId}~1spaces~1{spaceId}~1apps~1{aId}~1runs~1{runId}/get. Specs on APIs.io.