Execution Status
Executions progress through these statuses:Check Status
Useruns.get() to check the current status:
Wait for Completion
Useruns.waitForCompletion() to poll until the execution finishes:
Options
Manual Polling
For more control, implement your own polling loop:Execution Result
Completed executions include:Type-Safe Results
Use generics for typed output:Cancel Execution
Cancel a running execution:cancelled. Partial results may be available.
Batch Processing
Process multiple documents and poll all results:Next Steps
Webhooks
Get notified instead of polling
Error Handling
Handle execution failures