Skip to content

Commit

Permalink
chore: BatchExports do not retry on OperationalError (#17452)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasfarias authored Sep 14, 2023
1 parent a383c13 commit 491960d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion posthog/temporal/workflows/postgres_batch_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,11 @@ async def run(self, inputs: PostgresBatchExportInputs):
initial_interval=dt.timedelta(seconds=10),
maximum_interval=dt.timedelta(seconds=120),
maximum_attempts=10,
non_retryable_error_types=[],
non_retryable_error_types=[
# Raised on errors that are related to database operation.
# For example: unexpected disconnect, database or other object not found.
"OperationalError"
],
),
)

Expand Down

0 comments on commit 491960d

Please sign in to comment.