Wait for Task Extraction
wait_for_task_extractionPoll a Suparse extraction task by task ID to return status and document IDs, not extracted data; use those IDs to fetch or download results.
Instructions
Wait for an existing extraction task_id; returns status and document_ids, not extracted data. completed and partially_completed return successfully; failed and insufficient_credits produce errors. Partial completion is not success for every document. Use fetch_document_result or download_results with the returned document IDs. Defaults to poll_interval 2 seconds and max_poll_attempts 3; SDK backoff and retries mean this is not a strict wall-clock deadline. On polling timeout, call again with the same task_id rather than uploading again. This does not approve documents awaiting human review.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| api_url | No | ||
| task_id | Yes | Remote Suparse task ID, not a local path or document ID. | |
| poll_interval | No | Initial polling interval in seconds; defaults to 2. SDK backoff can increase the actual delay. | |
| max_poll_attempts | No | Maximum task polling attempts; defaults to 3. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | Yes | ||
| task_id | Yes | ||
| document_ids | Yes |