fix plugin initializer

This commit is contained in:
jxxghp
2025-05-13 21:37:10 +08:00
parent 7be2910809
commit 04ce774c22
3 changed files with 17 additions and 11 deletions
+3 -2
View File
@@ -5,7 +5,7 @@ from fastapi import FastAPI
from app.startup.workflow_initializer import init_workflow, stop_workflow
from app.startup.modules_initializer import shutdown_modules, start_modules
from app.startup.plugins_initializer import init_plugins_async
from app.startup.plugins_initializer import init_plugins_async, stop_plugins
from app.startup.routers_initializer import init_routers
@@ -40,4 +40,5 @@ async def lifespan(app: FastAPI):
shutdown_modules(app)
# 关闭工作流
stop_workflow(app)
# 关闭插件
stop_plugins()