get_task() method
This is useful for checking the status of previously created tasks or accessing their results.
Basic Usage
Customizing the Response
Theget_task() method accepts two optional parameters to customize the response:
Response Options
| Parameter | Default | Description |
|---|---|---|
include_chunks | True | When True, includes all processed chunks in the response. Set to False to receive a lighter response without chunk data. |
base64_urls | False | When True, returns URLs as base64-encoded strings. When False, returns presigned URLs for direct access. |
Async Usage
For async applications, remember to useawait:
Best Practices
- Store task IDs when creating tasks if you need to retrieve them later
- Use
include_chunks=Falsewhen you only need task metadata - Consider using base64 URLs (
base64_urls=True) when you need to cache or store the URLs locally