Skip to content

Commit

Permalink
fix: more reliable gunicorn restart
Browse files Browse the repository at this point in the history
killasgroup will ensure that all child processes die even if gunicorn
fails to do it. This isn't truly required because stopwaitsecs and
gunicorn graceful timeout work fine. In any case, if supervisor has to
send SIGKILL, it better send it to entire process group.
  • Loading branch information
ankush committed Nov 3, 2023
1 parent 255c930 commit 2ec0c0a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bench/config/templates/supervisor.conf
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ autorestart=true
stdout_logfile={{ bench_dir }}/logs/web.log
stderr_logfile={{ bench_dir }}/logs/web.error.log
stopwaitsecs=40
killasgroup=true
user={{ user }}
directory={{ sites_dir }}

Expand Down

0 comments on commit 2ec0c0a

Please sign in to comment.