From d504da1ff10146d2389ee422c2bc07820de55648 Mon Sep 17 00:00:00 2001 From: Piero Toffanin Date: Fri, 5 Dec 2025 13:08:18 -0500 Subject: [PATCH] Do not update models when gunicorn workers restart --- scripts/entrypoint.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/entrypoint.sh b/scripts/entrypoint.sh index 146be81..3a2d56b 100755 --- a/scripts/entrypoint.sh +++ b/scripts/entrypoint.sh @@ -36,5 +36,9 @@ else BIND_ADDR="$LT_HOST" fi +# Do not update models when workers restart +unset LT_UPDATE_MODELS +unset FORCE_UPDATE_MODELS + PROMETHEUS_MULTIPROC_DIR="${__dirname}/../db/prometheus" ./venv/bin/gunicorn -c scripts/gunicorn_conf.py --workers $LT_THREADS --max-requests 250 --timeout 2400 --bind $BIND_ADDR:$LT_PORT 'wsgi:app'