From b74f243fb6dfa09bb0bc20f782fed0d0e4dde09e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1s=20Far=C3=ADas=20Santana?= Date: Thu, 2 Jan 2025 11:47:09 +0100 Subject: [PATCH] chore: Make FeatureNotSupported non-retryable in pg batch export (#27211) --- posthog/temporal/batch_exports/postgres_batch_export.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/posthog/temporal/batch_exports/postgres_batch_export.py b/posthog/temporal/batch_exports/postgres_batch_export.py index 1a2cf64055452..d71219265d623 100644 --- a/posthog/temporal/batch_exports/postgres_batch_export.py +++ b/posthog/temporal/batch_exports/postgres_batch_export.py @@ -719,6 +719,9 @@ async def run(self, inputs: PostgresBatchExportInputs): "PostgreSQLConnectionError", # Raised when merging without a primary key. "MissingPrimaryKeyError", + # Raised when the database doesn't support a particular feature we use. + # Generally, we have seen this when the database is read-only. + "FeatureNotSupported", ], finish_inputs=finish_inputs, )