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.

fix: document paused at format error (#925)

takatost22c1aafb9ba3
diff --git a/api/services/dataset_service.py b/api/services/dataset_service.py
index 636f0fa08f6..f17f956a348 100644
--- a/api/services/dataset_service.py
+++ b/api/services/dataset_service.py
@@ -370,8 +370,8 @@ class DocumentService:
raise DocumentIndexingError()
# update document to be recover
document.is_paused = False
- document.paused_by = current_user.id
- document.paused_at = time.time()
+ document.paused_by = None
+ document.paused_at = None
db.session.add(document)
db.session.commit()