: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(convex): treat exhausted read-timeout retries as transient (#114785)
Tom Owers5e72e99558bb
diff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/convex/source.py b/products/warehouse_sources/backend/temporal/data_imports/sources/convex/source.pyindex bd0f579d6546..865e255eb5c7 100644--- a/products/warehouse_sources/backend/temporal/data_imports/sources/convex/source.py+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/convex/source.py@@ -150,7 +150,11 @@ You can find your deployment URL and deploy key in your [Convex Dashboard](https# so Temporal's activity retry recovers once it clears rather than surfacing it as tracked# exception noise. `requests.Response.raise_for_status` derives these prefixes from the# status code alone, not the vendor's reason text, so they're stable to match on.- return {"Server Error", "429 Client Error", "Convex full resync requested"}+ # A read timeout or dropped connection retries the same way, at both the urllib3 adapter+ # (POST is in `_CONVEX_RETRY.allowed_methods`) and the `_convex_get`/`_convex_post` tenacity+ # decorator. The deployment host is customer-specific, so match urllib3's stable wrapper+ # text instead of a fixed host (see adjust/app_store_connect for the fixed-host equivalent).+ return {"Server Error", "429 Client Error", "Convex full resync requested", "Max retries exceeded with url:"}def validate_credentials(self,diff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/convex/tests/test_convex.py b/products/warehouse_sources/backend/temporal/data_imports/sources/convex/tests/test_convex.pyindex b864118cdd07..f35ea83f0b5b 100644--- a/products/warehouse_sources/backend/temporal/data_imports/sources/convex/tests/test_convex.py+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/convex/tests/test_convex.py@@ -347,6 +347,12 @@ class TestConvexRetryableErrors:("504", "504 Server Error: Gateway Timeout for url: https://x.convex.cloud/api/v1/data/sync"),("cloudflare_520", "520 Server Error: Unknown Error for url: https://x.convex.cloud/api/v1/data/sync"),("429", "429 Client Error: Too Many Requests for url: https://x.convex.cloud/api/v1/data/sync"),+ (+ "read_timeout_exhausted",+ "HTTPSConnectionPool(host='x.convex.cloud', port=443): Max retries exceeded with url: "+ "/api/v1/data/sync (Caused by ReadTimeoutError(\"HTTPSConnectionPool(host='x.convex.cloud', "+ 'port=443): Read timed out. (read timeout=60)"))',+ ),])def test_transient_errors_are_recognized_as_retryable(self, _name: str, observed_error: str) -> None: