From: Gabriel Cuba Date: Tue, 28 Feb 2023 23:51:19 +0000 (-0500) Subject: Adds TimeoutError handling to the retryer wrapper function. This will ensure that... X-Git-Tag: release-v14.0-start~20 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=87f5f03155d092c22f2bdf7303f10abf06f42531;p=osm%2FLCM.git Adds TimeoutError handling to the retryer wrapper function. This will ensure that gRPC calls succed while upgrading a Helm based EE. Change-Id: I49a0ec370986e45e8b779f361ee4d72ff5a15ef1 Signed-off-by: Gabriel Cuba --- diff --git a/osm_lcm/lcm_helm_conn.py b/osm_lcm/lcm_helm_conn.py index 4d1bfb2..d1ad4c5 100644 --- a/osm_lcm/lcm_helm_conn.py +++ b/osm_lcm/lcm_helm_conn.py @@ -47,7 +47,7 @@ from osm_lcm.lcm_utils import deep_get def retryer(max_wait_time_var="_initial_retry_time", delay_time_var="_retry_delay"): def wrapper(func): - retry_exceptions = ConnectionRefusedError + retry_exceptions = (ConnectionRefusedError, TimeoutError) @functools.wraps(func) async def wrapped(*args, **kwargs):