Procházet zdrojové kódy

[phoenix] Avoid error when opening up Editor after 1 hour

Romain Rigaux před 4 roky
rodič
revize
5cd2d3183a

+ 1 - 1
desktop/libs/notebook/src/notebook/connectors/sql_alchemy.py

@@ -202,7 +202,7 @@ class SqlAlchemyApi(Api):
     options.pop('has_impersonation', None)
     options.pop('has_impersonation', None)
     options.pop('ssh_server_host', None)
     options.pop('ssh_server_host', None)
 
 
-    options['pool_pre_ping'] = True
+    options['pool_pre_ping'] = not url.startswith('phoenix://')  # Should be moved to dialect when connectors always on
 
 
     return create_engine(url, **options)
     return create_engine(url, **options)