From 9371fccd622823d3547337da7fabb53b259b2f4f Mon Sep 17 00:00:00 2001 From: Smittix Date: Sat, 28 Feb 2026 17:25:26 +0000 Subject: [PATCH] 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 --- start.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/start.sh b/start.sh index cbb066f..4bc621e 100755 --- a/start.sh +++ b/start.sh @@ -127,6 +127,7 @@ if [[ "$HAS_GUNICORN" -eq 1 && "$HAS_GEVENT" -eq 1 ]]; then -k gevent -w 1 --timeout 300 + --graceful-timeout 5 --worker-connections 1000 --bind "${HOST}:${PORT}" --access-logfile -