Skip to content
Snippets Groups Projects
Commit 265fd044 authored by Martin Mareš's avatar Martin Mareš
Browse files

GC: Na konci běhu garbage collectoru pro jistotu rollbackneme DB

Nechceme, aby zůstávaly dlouhodobě otevřené transakce.
parent 63e0fb79
No related branches found
No related tags found
1 merge request!109Automatická oprava rozbitých PDF
......@@ -191,6 +191,7 @@ def collect_garbage() -> None:
def gc():
"""Run garbage collector."""
collect_garbage()
db.get_session().rollback() # Pokud zůstala otevřená DB session
try:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment