Fix: add missing db.session.close() to ensure proper session cleanup (#23122)
This commit is contained in:
parent
0ea010d7ee
commit
f17ca26b10
3 changed files with 5 additions and 0 deletions
|
|
@ -113,3 +113,5 @@ def document_indexing_sync_task(dataset_id: str, document_id: str):
|
|||
logging.info(click.style(str(ex), fg="yellow"))
|
||||
except Exception:
|
||||
logging.exception("document_indexing_sync_task failed, document_id: %s", document_id)
|
||||
finally:
|
||||
db.session.close()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue