Fixed Gunicorn issue, continue on Peer Schedule Job

This commit is contained in:
Donald Zou
2024-06-19 17:09:58 +08:00
parent 9baefec541
commit 6c529a6908
6 changed files with 127 additions and 62 deletions

View File

@@ -4,8 +4,8 @@ import dashboard
app_host, app_port = dashboard.gunicornConfig()
worker_class = 'gthread'
workers = multiprocessing.cpu_count() * 2 + 1
workers = 4
threads = 2
bind = f"{app_host}:{app_port}"
daemon = True
pidfile = './gunicorn.pid'
pidfile = './gunicorn.pid'