Skip to content

A community-supported supercharged document management system: scan, index and archive all your documents

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

Trenton Hd8b5b4d4470d
diff --git a/src/paperless_testing/retry.py b/src/paperless_testing/retry.py
index 67d1f81a4..7b5f16765 100644
--- a/src/paperless_testing/retry.py
+++ b/src/paperless_testing/retry.py
@@ -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