You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By default, SQLAlchemy v2 now uses connection pooling to improve performance for subsequent database connections.
However, the side effect of this is that the connection is not released for some time, and this interferes with Zipline's ingestion process whereby a temporary directory and database is created and then subsequently copied over, and the cleanup removes the temporary directory. The database file is still open and causes the temporary folder cleanup routines to fail on certain operating systems (eg. Windows).
By default, SQLAlchemy v2 now uses connection pooling to improve performance for subsequent database connections.
However, the side effect of this is that the connection is not released for some time, and this interferes with Zipline's ingestion process whereby a temporary directory and database is created and then subsequently copied over, and the cleanup removes the temporary directory. The database file is still open and causes the temporary folder cleanup routines to fail on certain operating systems (eg. Windows).
Easy solution: Don't use connection pooling
utils/sqlite_utils.py
Add this at line 19:
Line 46, change from:
to:
The text was updated successfully, but these errors were encountered: