Skip to content

Commit b955a8f

Browse files
authored
Merge pull request #505 from SamuelBortolinAfliant/allowed-to-set-the-uvicorn-loop
Allowed to set the UVICORN_LOOP env var to configure the uvicorn loop parameter
2 parents 9901e3d + b4ba26b commit b955a8f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

start.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ HOST="${HOST:-0.0.0.0}"
44
# Default value for PIPELINES_DIR
55
PIPELINES_DIR=${PIPELINES_DIR:-./pipelines}
66

7+
UVICORN_LOOP="${UVICORN_LOOP:-auto}"
8+
79
# Function to reset pipelines
810
reset_pipelines_dir() {
911
if [ "$RESET_PIPELINES_DIR" = true ]; then
@@ -150,6 +152,6 @@ fi
150152

151153
if [[ "$MODE" == "run" || "$MODE" == "full" ]]; then
152154
echo "Running via Mode: $MODE"
153-
uvicorn main:app --host "$HOST" --port "$PORT" --forwarded-allow-ips '*'
155+
uvicorn main:app --host "$HOST" --port "$PORT" --forwarded-allow-ips '*' --loop "$UVICORN_LOOP"
154156
fi
155157

0 commit comments

Comments
 (0)