diff --git a/scripts/entrypoint.sh b/scripts/entrypoint.sh index a92fefa..0791c5f 100755 --- a/scripts/entrypoint.sh +++ b/scripts/entrypoint.sh @@ -48,5 +48,10 @@ else mkdir -p "$PROMETHEUS_MULTIPROC_DIR" fi -ARGOS_CHUNK_TYPE=MINISBD ./venv/bin/gunicorn -c scripts/gunicorn_conf.py --workers $LT_THREADS --max-requests 250 --timeout 2400 --bind $BIND_ADDR:$LT_PORT 'wsgi:app()' +# Set ARGOS_CHUNK_TYPE to MINISBD if not already defined +if [[ -z "$ARGOS_CHUNK_TYPE" ]]; then + export ARGOS_CHUNK_TYPE=MINISBD +fi + +./venv/bin/gunicorn -c scripts/gunicorn_conf.py --workers $LT_THREADS --max-requests 250 --timeout 2400 --bind $BIND_ADDR:$LT_PORT 'wsgi:app()'