From 87f5f03155d092c22f2bdf7303f10abf06f42531 Mon Sep 17 00:00:00 2001 From: Gabriel Cuba Date: Tue, 28 Feb 2023 18:51:19 -0500 Subject: [PATCH] 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 --- osm_lcm/lcm_helm_conn.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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): -- 2.25.1