Add SSE second-level dashboard stream and 2s client heartbeat.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user