Skip to content

[DRAFT] feat: use OperationTimeoutError instead of DeadlineExceeded#914

Closed
daniel-sanche wants to merge 5 commits intogoogleapis:experimental_v3from
daniel-sanche:change_timeout_exception
Closed

[DRAFT] feat: use OperationTimeoutError instead of DeadlineExceeded#914
daniel-sanche wants to merge 5 commits intogoogleapis:experimental_v3from
daniel-sanche:change_timeout_exception

Conversation

@daniel-sanche
Copy link
Contributor

In the current v3 alpha, operations that exceed the timeout raise a DeadlineExceeded error. This overloads the meanings of that error, since it is typically used to denote an expired rpc, not entire operation.

This PR changes the exception raised to a new OperationTimeoutError, which is used only for timed out operations. The new exception is a subclass of api_core.exceptions.RetryError, to align with other libraries

Fixes #913

@daniel-sanche daniel-sanche requested review from a team as code owners January 11, 2024 19:35
@product-auto-label product-auto-label bot added size: m Pull request size is medium. api: bigtable Issues related to the googleapis/python-bigtable API. labels Jan 11, 2024
@daniel-sanche daniel-sanche changed the title feat: use OperationTimeoutError instead of DeadlineExceeded [DRAFT] feat: use OperationTimeoutError instead of DeadlineExceeded Jan 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: bigtable Issues related to the googleapis/python-bigtable API. size: m Pull request size is medium.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant