Do not update models when gunicorn workers restart

This commit is contained in:
Piero Toffanin 2025-12-05 13:08:18 -05:00
parent f93459af3c
commit d504da1ff1

View File

@ -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'