fix: Reduce API polling for `Document.from_batch_process_operation()` by holtskinner · Pull Request #249 · googleapis/python-documentai-toolbox · GitHub
Skip to content
This repository was archived by the owner on Mar 6, 2026. It is now read-only.

fix: Reduce API polling for Document.from_batch_process_operation()#249

Merged
holtskinner merged 5 commits into
mainfrom
quota_api_limit
Feb 2, 2024
Merged

fix: Reduce API polling for Document.from_batch_process_operation()#249
holtskinner merged 5 commits into
mainfrom
quota_api_limit

Conversation

@holtskinner

Copy link
Copy Markdown
Contributor

Also added ClientInfo to Document AI Clients to collect API usage metrics

Fixes #246 🦕

…atch_process_operation()`

fixes #246

Also added `ClientInfo` to Document AI Clients to collect API usage metrics
@holtskinner holtskinner requested review from a team February 2, 2024 17:14
@product-auto-label product-auto-label Bot added the size: s Pull request size is small. label Feb 2, 2024
@holtskinner holtskinner enabled auto-merge (squash) February 2, 2024 17:15
@holtskinner holtskinner disabled auto-merge February 2, 2024 17:17
Comment thread google/cloud/documentai_toolbox/wrappers/document.py Outdated
- Required significant refactoring to convert the operations_pb into a Google API Core Operation that can be polled.
@product-auto-label product-auto-label Bot added size: m Pull request size is medium. and removed size: s Pull request size is small. labels Feb 2, 2024
@holtskinner holtskinner changed the title fix: Add polling interval and timeout parameters for Document.from_batch_process_operation() fix: Reduce API polling for Document.from_batch_process_operation() Feb 2, 2024
@holtskinner holtskinner merged commit 0677299 into main Feb 2, 2024
@holtskinner holtskinner deleted the quota_api_limit branch February 2, 2024 19:23
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

size: m Pull request size is medium.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Document.from_batch_process_operation() causing DocumentAI request quota limit to be exceeded.

2 participants