mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-02-01 12:24:57 -05:00
SQLite cursors are meant to be lightweight and not reused. For whatever reason, we reuse one per service for the entire app lifecycle. This can cause issues where a cursor is used twice at the same time in different transactions. This experiment makes the session queue use a fresh cursor for each method, hopefully fixing the issue.