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(command): The vdb migrate command cannot be stopped (#27536)

zhaobingshuange60a7c714353
diff --git a/api/commands.py b/api/commands.py
index 8ca19e1daca..084fd576a11 100644
--- a/api/commands.py
+++ b/api/commands.py
@@ -321,6 +321,8 @@ def migrate_knowledge_vector_database():
)
datasets = db.paginate(select=stmt, page=page, per_page=50, max_per_page=50, error_out=False)
+ if not datasets.items:
+ break
except SQLAlchemyError:
raise