def retry_if_500_error(exception):
"""Allow retry if we get a 500 error from IAM API."""
logging.info("Received %s, retrying...", exception)
return (isinstance(exception, errors.HttpError)
and exception.resp.status >= 500
and exception.resp.status < 600)
评论列表
文章目录