Closed fnikolai closed 2 weeks ago
If we reconnect will it work or do we need to fetch the token from somewhere?
I 'm guessing that reconnect should work (since it works on the first connection, I don't see why it shouldn't work on reconnect)
Specifically for snowflake, there is the possibility to allow the session to stay active indefinitely by setting CLIENT_SESSION_KEEP_ALIVE=TRUE
.
Idea: retain a self.connect()
callback in meta-data store and data-backend to reconnect without caching credentials.
The same problem exists in the apiserver
in golang and on the frontend in javascript
When connecting to external systems, we assume that connections are persistent and last forever.
This is not always the case. For example, the snowflake authentication token expires after 1h and the connection returns an exception.
We have to capture this exception and re-establish the connection.
The snowflake log:
show.json