Skip to content

Commit 5d88337

Browse files
bug: Sessions should stay open even if snowflake is idle for hours (#272)
Fixes #270 --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 04ce79f commit 5d88337

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: target_snowflake/connector.py

+1
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,7 @@ def create_engine(self) -> Engine:
218218
"session_parameters": {
219219
"QUOTED_IDENTIFIERS_IGNORE_CASE": "TRUE",
220220
},
221+
"client_session_keep_alive": True, # See https://github.com/snowflakedb/snowflake-connector-python/issues/218
221222
}
222223
if self.auth_method == SnowflakeAuthMethod.KEY_PAIR:
223224
connect_args["private_key"] = self.get_private_key()

0 commit comments

Comments
 (0)