mirror of
https://github.com/smittix/intercept.git
synced 2026-07-24 08:58:09 -07:00
fix: add graceful-timeout to gunicorn so Ctrl+C shuts down promptly
Long-lived SSE connections prevent the gevent worker from exiting on SIGINT. --graceful-timeout 5 force-kills the worker after 5 seconds. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -127,6 +127,7 @@ if [[ "$HAS_GUNICORN" -eq 1 && "$HAS_GEVENT" -eq 1 ]]; then
|
|||||||
-k gevent
|
-k gevent
|
||||||
-w 1
|
-w 1
|
||||||
--timeout 300
|
--timeout 300
|
||||||
|
--graceful-timeout 5
|
||||||
--worker-connections 1000
|
--worker-connections 1000
|
||||||
--bind "${HOST}:${PORT}"
|
--bind "${HOST}:${PORT}"
|
||||||
--access-logfile -
|
--access-logfile -
|
||||||
|
|||||||
Reference in New Issue
Block a user