Skip to content

Commit a3d3733

Browse files
chore: Add extra args in gunicorn and celery
1 parent e5494c3 commit a3d3733

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/container_start.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ then
1616
export GUNICORN_WORKERS=${GUNICORN_WORKERS:-4}
1717
export GUNICORN_LOG_LEVEL=${GUNICORN_LOG_LEVEL:-info}
1818
echo "[LOG] Starting gunicorn on port ${PORT}"
19-
gunicorn -b 0.0.0.0:${PORT} app:app -w $GUNICORN_WORKERS --enable-stdio-inheritance --log-level $GUNICORN_LOG_LEVEL --proxy-protocol --preload
19+
gunicorn -b 0.0.0.0:${PORT} app:app -w $GUNICORN_WORKERS --enable-stdio-inheritance --log-level $GUNICORN_LOG_LEVEL --proxy-protocol --preload $GUNICORN_EXTRA_ARGS
2020
fi
2121
if [ "$DEPLOYMENT" == "celery" ]
2222
then
2323
echo "[LOG] Starting celery worker"
2424
export INTEGRATE_SOCKETIO=false
2525
export CELERY_LOG_LEVEL=${CELERY_LOG_LEVEL:-info}
26-
celery worker -B -A app.celery --loglevel=$CELERY_LOG_LEVEL
26+
celery worker -B -A app.celery --loglevel=$CELERY_LOG_LEVEL $CELERY_EXTRA_ARGS
2727
fi

0 commit comments

Comments
 (0)