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: resolve the error with the db-pool-stat endpoint (#9478)

zhuhaob9bf60ea23d4
diff --git a/api/app.py b/api/app.py
index 7fef62cd383..a3efabf06c2 100644
--- a/api/app.py
+++ b/api/app.py
@@ -20,6 +20,7 @@ from app_factory import create_app
# DO NOT REMOVE BELOW
from events import event_handlers # noqa: F401
+from extensions.ext_database import db
# TODO: Find a way to avoid importing models here
from models import account, dataset, model, source, task, tool, tools, web # noqa: F401