mirror of
https://github.com/frappe/bench.git
synced 2025-01-22 22:58:31 +00:00
Merge pull request #1493 from frappe/timeout
fix: Prevent Gunicorn child workers hangup
This commit is contained in:
commit
52f704777b
@ -2,13 +2,15 @@
|
||||
; priority=1 --> Lower priorities indicate programs that start first and shut down last
|
||||
; killasgroup=true --> send kill signal to child processes too
|
||||
|
||||
; graceful timeout should always be lower than stopwaitsecs to avoid orphan gunicorn workers.
|
||||
[program:{{ bench_name }}-frappe-web]
|
||||
command={{ bench_dir }}/env/bin/gunicorn -b 127.0.0.1:{{ webserver_port }} -w {{ gunicorn_workers }} --max-requests {{ gunicorn_max_requests }} --max-requests-jitter {{ gunicorn_max_requests_jitter }} -t {{ http_timeout }} frappe.app:application --preload
|
||||
command={{ bench_dir }}/env/bin/gunicorn -b 127.0.0.1:{{ webserver_port }} -w {{ gunicorn_workers }} --max-requests {{ gunicorn_max_requests }} --max-requests-jitter {{ gunicorn_max_requests_jitter }} -t {{ http_timeout }} --graceful-timeout 30 frappe.app:application --preload
|
||||
priority=4
|
||||
autostart=true
|
||||
autorestart=true
|
||||
stdout_logfile={{ bench_dir }}/logs/web.log
|
||||
stderr_logfile={{ bench_dir }}/logs/web.error.log
|
||||
stopwaitsecs=40
|
||||
user={{ user }}
|
||||
directory={{ sites_dir }}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user