|
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 missing
python-api-core/google/api_core/retry.py
Lines 102 to 119 in 9123439
is not aligned with inline documentation and https://googleapis.dev/python/google-api-core/latest/retry.html#google.api_core.retry.Retry
e.g.
ResourceExhaustedis missing