From bc6706045809ad82aebfe0de918acc84a059c055 Mon Sep 17 00:00:00 2001 From: Derek Visch Date: Thu, 10 Oct 2024 11:37:53 -0400 Subject: [PATCH] Sessions should stay open even if snowflake is idle for hours --- target_snowflake/connector.py | 1 + 1 file changed, 1 insertion(+) diff --git a/target_snowflake/connector.py b/target_snowflake/connector.py index 74f3e73..d6da612 100644 --- a/target_snowflake/connector.py +++ b/target_snowflake/connector.py @@ -217,6 +217,7 @@ def create_engine(self) -> Engine: connect_args = { "session_parameters": { "QUOTED_IDENTIFIERS_IGNORE_CASE": "TRUE", + "client_session_keep_alive": "TRUE", # See https://github.com/snowflakedb/snowflake-connector-python/issues/218 }, } if self.auth_method == SnowflakeAuthMethod.KEY_PAIR: