Skip to content

Commit

Permalink
fix(batch-exports): Use max_attempts variable
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasfarias committed Oct 30, 2024
1 parent 589656c commit 5da5200
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion posthog/temporal/batch_exports/postgres_batch_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -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),
)

Expand Down

0 comments on commit 5da5200

Please sign in to comment.