How async works
When you submit a request, the backend decides whether to process it synchronously or asynchronously:Transparent vs explicit async
- Transparent (auto)
- Explicit async
Use the standard methods — the SDK handles async automatically:Your code blocks until the result is ready. Simple and clean.
AsyncJobHandle
All async methods return a job handle with the same interface:Check status
Boolean checks
Wait for completion
Cancel
Properties
AsyncJobStatus fields
Helper properties:
status.is_running—Trueif still processingstatus.is_completed—Trueif completed successfullystatus.is_failed—Trueif failed or cancelled
Polling mechanism
The SDK uses HTTP polling — it calls the status endpoint in a loop withtime.sleep():
There is no WebSocket-based progress in the SDK. For real-time progress, use the Valiqor Dashboard.
Batch dataset format
All analysis modules accept datasets as JSON arrays:From a JSON file
Security dataset format
Security audits use a different schema:Error handling
CLI async
All CLI commands support async with--async and status polling:
Failure Analysis →
Run FA on large datasets.
BYOK →
Use your own OpenAI key for faster processing.