- 
                Notifications
    You must be signed in to change notification settings 
- Fork 96
Closed
Labels
priority: p2Moderately-important priority. Fix may not be included in next release.Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.type: docsImprovement to the documentation for an API.Improvement to the documentation for an API.
Description
python-api-core/google/api_core/retry.py
Lines 102 to 119 in 9123439
| if_transient_error = if_exception_type( | |
| exceptions.InternalServerError, | |
| exceptions.TooManyRequests, | |
| exceptions.ServiceUnavailable, | |
| requests.exceptions.ConnectionError, | |
| auth_exceptions.TransportError, | |
| ) | |
| """A predicate that checks if an exception is a transient API error. | |
| The following server errors are considered transient: | |
| - :class:`google.api_core.exceptions.InternalServerError` - HTTP 500, gRPC | |
| ``INTERNAL(13)`` and its subclasses. | |
| - :class:`google.api_core.exceptions.TooManyRequests` - HTTP 429 | |
| - :class:`google.api_core.exceptions.ServiceUnavailable` - HTTP 503 | |
| - :class:`google.api_core.exceptions.ResourceExhausted` - gRPC | |
| ``RESOURCE_EXHAUSTED(8)`` | |
| """ | 
is not aligned with inline documentation and https://googleapis.dev/python/google-api-core/latest/retry.html#google.api_core.retry.Retry
e.g.
ResourceExhausted is missingMetadata
Metadata
Assignees
Labels
priority: p2Moderately-important priority. Fix may not be included in next release.Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.type: docsImprovement to the documentation for an API.Improvement to the documentation for an API.