Async Tasks and Workflows
Long-running operations (for example shading and energy model runs) are executed asynchronously.Async Pattern
- Client submits a request to an async endpoint.
- API returns
200with ataskId(and often created resource IDs). - Worker processes the task.
- Client polls
/tasks/{task_id}until terminal status.
Task Lifecycle
Task statuses:pendingqueuedrunningcompletedfailedcancelled
initializing, processing, saving, etc.).
Polling Endpoints
Workflow Chains
Some operations create a parent workflow with child tasks.Polling Example
Treat task result payloads as task-type-specific. For final model outputs, fetch the created resource directly (for example
/energymodels/{id})./energymodels/{id} row. Rerun does not create a second energy-model resource.