Add SSE second-level dashboard stream and 2s client heartbeat.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-10-17 21:04:55 +08:00
parent ba74a9cce8
commit d860156b11
8 changed files with 114 additions and 62 deletions
+2 -1
View File
@@ -11,7 +11,8 @@ module.exports = {
name: "gold_monitor",
cwd: root,
script: path.join(root, ".venv/bin/gunicorn"),
args: "wsgi:app --bind 0.0.0.0:5800 --workers 2 --threads 4 --timeout 120",
// threads 便于 SSE 长连接;timeout 拉长避免秒级推送被 worker 杀掉
args: "wsgi:app --bind 0.0.0.0:5800 --workers 2 --threads 8 --timeout 300 --keep-alive 5",
interpreter: "none",
autorestart: true,
max_restarts: 20,