-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Reduce API polling for
Document.from_batch_process_operation()
(…
…#249) * fix: Add polling interval and timeout parameters for `Document.from_batch_process_operation()` fixes #246 Also added `ClientInfo` to Document AI Clients to collect API usage metrics * Change default polling interval to `0`. * Fix docstring formatting * Change Operation Polling to use default api_core retry. - Required significant refactoring to convert the operations_pb into a Google API Core Operation that can be polled. * test: Fix unit tests for `_get_batch_process_metadata()`
- Loading branch information
1 parent
b741498
commit 0677299
Showing
3 changed files
with
48 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters