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
Currently, the aiosqlite connection used by SQLiteBackend will only close automatically if used with the CachedSession contextmanager. Otherwise, the Thread object used by aiosqlite remains open and causes the program to hang (unlike the stdlib sqlite3 module, which works fine with leaving connections open).
Follow-up from #173.
Currently, the aiosqlite connection used by
SQLiteBackend
will only close automatically if used with theCachedSession
contextmanager. Otherwise, theThread
object used by aiosqlite remains open and causes the program to hang (unlike the stdlibsqlite3
module, which works fine with leaving connections open).Workarounds
Either use the contextmanager:
Or explicitly call
close()
:Options
SQLiteBackend.__del__()
(suggested here)aiosqlite.Connection.run()
to accept a signal to immediately close without blocking the event loop or needing to be scheduledThe text was updated successfully, but these errors were encountered: