mirror of
http://112.124.100.131/huang.ze/ebiz-dify-ai.git
synced 2025-12-11 11:56:53 +08:00
deal db session in celery worker (#17549)
This commit is contained in:
@@ -167,3 +167,5 @@ def deal_dataset_vector_index_task(dataset_id: str, action: str):
|
||||
)
|
||||
except Exception:
|
||||
logging.exception("Deal dataset vector index failed")
|
||||
finally:
|
||||
db.session.close()
|
||||
|
||||
Reference in New Issue
Block a user