From 7fa52aa6c9a36cd35be28d7f8e5e2b93b8da3abd Mon Sep 17 00:00:00 2001 From: Piero Toffanin Date: Mon, 2 Feb 2026 12:10:13 -0500 Subject: [PATCH] Add MiniSBD env variable --- scripts/entrypoint.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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()'