From 5da520091270376ac7a5c675107031c7e0d0a99a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1s=20Far=C3=ADas=20Santana?= Date: Wed, 30 Oct 2024 10:57:12 +0100 Subject: [PATCH] fix(batch-exports): Use max_attempts variable --- posthog/temporal/batch_exports/postgres_batch_export.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/posthog/temporal/batch_exports/postgres_batch_export.py b/posthog/temporal/batch_exports/postgres_batch_export.py index ac916156a15d96..5d9bc88f7bd29d 100644 --- a/posthog/temporal/batch_exports/postgres_batch_export.py +++ b/posthog/temporal/batch_exports/postgres_batch_export.py @@ -136,7 +136,7 @@ async def connect( max_attempts = 5 connect = make_retryable_with_exponential_backoff( psycopg.AsyncConnection.connect, - max_attempts=5, + max_attempts=max_attempts, retryable_exceptions=(psycopg.OperationalError, psycopg.errors.ConnectionTimeout), )