Skip to content

Commit

Permalink
bug: Sessions should stay open even if snowflake is idle for hours (#272
Browse files Browse the repository at this point in the history
)

Fixes #270

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
visch and pre-commit-ci[bot] authored Oct 10, 2024
1 parent 04ce79f commit 5d88337
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions target_snowflake/connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,7 @@ def create_engine(self) -> Engine:
"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:
connect_args["private_key"] = self.get_private_key()
Expand Down

0 comments on commit 5d88337

Please sign in to comment.