Merge "Do not retry immediately after server fault"

This commit is contained in:
Zuul
2023-08-24 08:30:51 +00:00
committed by Gerrit Code Review
+1
View File
@@ -93,6 +93,7 @@ def call_and_ignore_notfound_exc(func, *args, **kwargs):
if attempt >= 3:
raise
LOG.warning('Got ServerFault while running %s, retrying...', func)
time.sleep(1)
def call_until_true(func, duration, sleep_for, *args, **kwargs):