Skip to content
ComPDF

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:

PhaseIntervalDescription
Initial polling2-5 secondsInitial polling cycle after task creation
Medium polling5-10 secondsWhen task exceeds 30 seconds
Exponential backoffIncreasing (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.