mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix(backend): fix sqlite cannot commit - no transaction is active
The `commit()` was called even if we hadn't executed anything
This commit is contained in:
parent
2cf0d61b3e
commit
e62d5478fd
@ -548,8 +548,7 @@ class SqliteBatchProcessStorage(BatchProcessStorageBase):
|
|||||||
""",
|
""",
|
||||||
(changes.state, batch_id, session_id),
|
(changes.state, batch_id, session_id),
|
||||||
)
|
)
|
||||||
|
self._conn.commit()
|
||||||
self._conn.commit()
|
|
||||||
except sqlite3.Error as e:
|
except sqlite3.Error as e:
|
||||||
self._conn.rollback()
|
self._conn.rollback()
|
||||||
raise BatchSessionSaveException from e
|
raise BatchSessionSaveException from e
|
||||||
|
Loading…
Reference in New Issue
Block a user