mirror of
https://github.com/LibreTranslate/LibreTranslate.git
synced 2026-01-09 05:30:43 -05:00
Do not update models when gunicorn workers restart
This commit is contained in:
parent
f93459af3c
commit
d504da1ff1
@ -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'
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user