Skip to main content

tasks.get(job_id)

Get current task status:

tasks.wait_for_completion(job_id, timeout=300, poll_interval=3, on_progress=None)

Wait for task completion:
Parameters:
  • job_id (str): Job ID to wait for
  • timeout (float, optional): Max wait time in seconds (default: 300)
  • poll_interval (float, optional): Seconds between checks (default: 3)
  • on_progress (callable, optional): Callback on each check

Async/Await

All methods support async using AsyncClient:
Batch processing example:

Error Handling

Handle different error types:
Exception Types:

Learn More