fix 优雅停止

This commit is contained in:
jxxghp
2025-06-09 13:09:16 +08:00
parent 4ad699dbe6
commit 2e5c92ae0c
3 changed files with 114 additions and 14 deletions

View File

@@ -22,7 +22,7 @@ from app.db.init import init_db, update_db
# uvicorn服务
Server = uvicorn.Server(Config(app, host=settings.HOST, port=settings.PORT,
reload=settings.DEV, workers=multiprocessing.cpu_count(),
timeout_graceful_shutdown=30))
timeout_graceful_shutdown=60))
def start_tray():