mirror of
https://github.com/langgenius/dify.git
synced 2025-12-20 14:42:37 +00:00
deal db session in celery worker (#17549)
This commit is contained in:
@@ -53,3 +53,5 @@ def clean_notion_document_task(document_ids: list[str], dataset_id: str):
|
||||
)
|
||||
except Exception:
|
||||
logging.exception("Cleaned document when import form notion document deleted failed")
|
||||
finally:
|
||||
db.session.close()
|
||||
|
||||
Reference in New Issue
Block a user