Timeout Handling
What to Do When a Task Times Out
If a task processing times out (single file exceeds 5 minutes), we recommend the following:
Switch to Async Requests
Use the asynchronous request mode and follow the polling strategy below.
Recommended Polling Intervals:
| Phase | Interval | Description |
|---|---|---|
| Initial polling | 2-5 seconds | Initial polling cycle after task creation |
| Medium polling | 5-10 seconds | When task exceeds 30 seconds |
| Exponential backoff | Increasing (doubling) | Adaptive strategy when queue is busy |
Timeout threshold: Single file processing exceeding 5 minutes is considered a timeout. After timeout, try:
- Reduce the number of pages per request
- Split large documents into smaller files and submit in batches
- Contact technical support to adjust task queue priority
For details on async requests, see Request Modes.