Chore: Stop the live-service retry helper sleeping after a success (#14222)

util_call_with_backoff made every call wait 20 seconds even when the first attempt succeeded

The helper now sleeps only after a failure that has another attempt left.
This commit is contained in:
Trenton H
2026-09-22 08:02:18 -07:00
committed by GitHub
parent 03ac4aed7e
commit d8b5b4d447
+3 -2
View File
@@ -61,8 +61,9 @@ def util_call_with_backoff(
retry_count = retry_count + 1
time.sleep(retry_time)
retry_time = retry_time * 2.0
if not succeeded and retry_count < max_retry_count:
time.sleep(retry_time)
retry_time = retry_time * 2.0
if (
not succeeded