소스 검색

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

Romain Rigaux 5 년 전
부모
커밋
5cd2d3183a
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      desktop/libs/notebook/src/notebook/connectors/sql_alchemy.py

+ 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('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)