mirror of
https://github.com/PostHog/posthog.git
synced 2024-11-21 13:39:22 +01:00
fix: Make snowflake interface error non-retryable (#26269)
This commit is contained in:
parent
383df6685c
commit
6b4ab24350
@ -12,7 +12,7 @@ import pyarrow as pa
|
||||
import snowflake.connector
|
||||
from django.conf import settings
|
||||
from snowflake.connector.connection import SnowflakeConnection
|
||||
from snowflake.connector.errors import OperationalError
|
||||
from snowflake.connector.errors import OperationalError, InterfaceError
|
||||
from temporalio import activity, workflow
|
||||
from temporalio.common import RetryPolicy
|
||||
|
||||
@ -206,6 +206,9 @@ class SnowflakeClient:
|
||||
else:
|
||||
raise SnowflakeConnectionError(f"Could not connect to Snowflake - {err.errno}: {err.msg}") from err
|
||||
|
||||
except InterfaceError as err:
|
||||
raise SnowflakeConnectionError(f"Could not connect to Snowflake - {err.errno}: {err.msg}") from err
|
||||
|
||||
self._connection = connection
|
||||
|
||||
await self.use_namespace()
|
||||
|
Loading…
Reference in New Issue
Block a user