From 38d1b7cef503b48248c8d37fc1d97e2506610c94 Mon Sep 17 00:00:00 2001 From: KoMa1012 Date: Wed, 8 Oct 2025 20:09:51 +0200 Subject: [PATCH] Update boot.sh made gunicorn timout configurable via environmental variable GUNICORN_TIMEOUT this can help in scenarios where e.g. the LLM takes too much time to answer when using a local LLM --- boot.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boot.sh b/boot.sh index 5116c3c7a..f07943b67 100755 --- a/boot.sh +++ b/boot.sh @@ -104,5 +104,5 @@ chmod -R 755 ${MEDIA_ROOT:-/opt/recipes/mediafiles} ipv6_disable=$(cat /sys/module/ipv6/parameters/disable) echo "Starting gunicorn" -exec gunicorn --bind unix:/run/tandoor.sock --workers $GUNICORN_WORKERS --threads $GUNICORN_THREADS --access-logfile - --error-logfile - --log-level $GUNICORN_LOG_LEVEL recipes.wsgi +exec gunicorn --bind unix:/run/tandoor.sock --workers $GUNICORN_WORKERS --threads $GUNICORN_THREADS --timeout ${GUNICORN_TIMEOUT:-30} --access-logfile - --error-logfile - --log-level $GUNICORN_LOG_LEVEL recipes.wsgi