Unverified Commit 48738af7 authored by Liangsheng Yin's avatar Liangsheng Yin Committed by GitHub
Browse files

[CI] always print back trace in `retry()` (#11834)

parent efa47334
......@@ -2354,6 +2354,8 @@ def retry(
try:
return fn()
except Exception as e:
traceback.print_exc()
if try_index >= max_retry:
raise Exception(f"retry() exceed maximum number of retries.")
......@@ -2367,7 +2369,6 @@ def retry(
logger.warning(
f"retry() failed once ({try_index}th try, maximum {max_retry} retries). Will delay {delay:.2f}s and retry. Error: {e}"
)
traceback.print_exc()
time.sleep(delay)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment