Skip to content
Permalink
Browse files
fix: add InternalServerError to list of expected errors (#151)
  • Loading branch information
daniel-sanche committed Jan 12, 2021
1 parent 92b287f commit 9bf49f51df5321e8b9c39018dff7d767347256d6
Showing with 4 additions and 1 deletion.
  1. +4 −1 tests/system/test_system.py
@@ -20,6 +20,7 @@

from google.api_core.exceptions import BadGateway
from google.api_core.exceptions import Conflict
from google.api_core.exceptions import InternalServerError
from google.api_core.exceptions import NotFound
from google.api_core.exceptions import TooManyRequests
from google.api_core.exceptions import ResourceExhausted
@@ -68,7 +69,9 @@ def _list_entries(logger):
:returns: List of all entries consumed.
"""
inner = RetryResult(_has_entries, max_tries=9)(_consume_entries)
outer = RetryErrors((ServiceUnavailable, ResourceExhausted), max_tries=9)(inner)
outer = RetryErrors(
(ServiceUnavailable, ResourceExhausted, InternalServerError), max_tries=9
)(inner)
return outer(logger)


0 comments on commit 9bf49f5

Please sign in to comment.