:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
fix(batch-exports): stop retrying postgres export when integration is deleted (#66973)
posthog[bot]e00d5209a5d5
diff --git a/products/batch_exports/backend/temporal/destinations/postgres_batch_export.py b/products/batch_exports/backend/temporal/destinations/postgres_batch_export.pyindex 37ede6eea7fb..a8791eee9b97 100644--- a/products/batch_exports/backend/temporal/destinations/postgres_batch_export.py+++ b/products/batch_exports/backend/temporal/destinations/postgres_batch_export.py@@ -96,6 +96,9 @@ NON_RETRYABLE_ERROR_TYPES = ("DiskFull",# Raised by our PostgreSQL client when failing to connect after several attempts."PostgreSQLConnectionError",+ # The integration backing this export was deleted. Retrying can never recover it,+ # so fail fast and let the user reconnect the destination.+ "PostgreSQLIntegrationNotFoundError",# Raised when merging without a primary key."MissingPrimaryKeyError",# Raised when the database doesn't support a particular feature we use.