Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

Update clean_document_task.py (#22090)

wangsen3b237113311ec
diff --git a/api/tasks/clean_document_task.py b/api/tasks/clean_document_task.py
index 5824121e8f2..c72a3319c1c 100644
--- a/api/tasks/clean_document_task.py
+++ b/api/tasks/clean_document_task.py
@@ -72,6 +72,7 @@ def clean_document_task(document_id: str, dataset_id: str, doc_form: str, file_i
DatasetMetadataBinding.dataset_id == dataset_id,
DatasetMetadataBinding.document_id == document_id,
).delete()
+ db.session.commit()
end_at = time.perf_counter()
logging.info(