chore: finalize vite migration hardening and archive openspec changes

This commit is contained in:
beabigegg
2026-02-08 20:03:36 +08:00
parent b56e80381b
commit c8e225101e
119 changed files with 6547 additions and 1301 deletions

View File

@@ -30,6 +30,18 @@ def worker_exit(server, worker):
except Exception as e:
server.log.warning(f"Error stopping equipment sync worker: {e}")
try:
from mes_dashboard.core.cache_updater import stop_cache_updater
stop_cache_updater()
except Exception as e:
server.log.warning(f"Error stopping cache updater: {e}")
try:
from mes_dashboard.core.redis_client import close_redis
close_redis()
except Exception as e:
server.log.warning(f"Error closing redis client: {e}")
# Then dispose database connections
try:
from mes_dashboard.core.database import dispose_engine