diff options
author | hoonji <hoonji126@gmail.com> | 2021-06-09 13:00:46 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-09 00:00:46 -0400 |
commit | 11032cf08ecc16dd252a6cda8b33b0b28ec4f4ba (patch) | |
tree | 5cea3c0623385a28d0b3ed594ab6cb211c8869e1 /google | |
parent | 2768346433d8934f722c24b1671634d9617e968a (diff) | |
download | python-api-core-11032cf08ecc16dd252a6cda8b33b0b28ec4f4ba.tar.gz |
feat: add ServiceUnavailable exception to polling retries (#184)
Diffstat (limited to 'google')
-rw-r--r-- | google/api_core/future/polling.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/google/api_core/future/polling.py b/google/api_core/future/polling.py index 6466838..2f80efb 100644 --- a/google/api_core/future/polling.py +++ b/google/api_core/future/polling.py @@ -34,6 +34,7 @@ RETRY_PREDICATE = retry.if_exception_type( exceptions.TooManyRequests, exceptions.InternalServerError, exceptions.BadGateway, + exceptions.ServiceUnavailable, ) DEFAULT_RETRY = retry.Retry(predicate=RETRY_PREDICATE) |