feat: graceful shutdown with store persistence and restart overlay
Lint & Test / test (push) Failing after 29s
Lint & Test / test (push) Failing after 29s
- Add /api/v1/system/shutdown endpoint that triggers clean uvicorn exit - Persist all 15 stores to disk during shutdown via _save_all_stores() - Add force parameter to BaseJsonStore._save() to bypass restore freeze - Restart script now requests graceful shutdown via API (15s timeout), falls back to force-kill only if server doesn't exit in time - Broadcast server_restarting event over WebSocket before shutdown - Frontend shows "Server restarting..." overlay instantly on WS event, replacing the old dynamically-created overlay from settings.ts - Add server_ref module to share uvicorn Server + TrayManager refs - Add i18n keys for restart overlay (en/ru/zh)
This commit is contained in:
@@ -4,6 +4,8 @@
|
||||
"app.api_docs": "API 文档",
|
||||
"app.connection_lost": "服务器不可达",
|
||||
"app.connection_retrying": "正在尝试重新连接…",
|
||||
"app.server_restarting": "服务器正在重启…",
|
||||
"app.server_restarting_sub": "请稍候,服务器即将恢复。",
|
||||
"demo.badge": "演示",
|
||||
"demo.banner": "您正处于演示模式 — 所有设备和数据均为虚拟。未使用任何真实硬件。",
|
||||
"theme.toggle": "切换主题",
|
||||
|
||||
Reference in New Issue
Block a user