From afa5d5e1f03d0c57b673fb1d1a0b6f89fd0d00ed Mon Sep 17 00:00:00 2001 From: Samuel Bortolin Date: Mon, 14 Apr 2025 17:09:28 +0200 Subject: [PATCH 1/2] Added UV LOOP --- start.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/start.sh b/start.sh index 94e259b..e6b7de0 100755 --- a/start.sh +++ b/start.sh @@ -4,6 +4,8 @@ HOST="${HOST:-0.0.0.0}" # Default value for PIPELINES_DIR PIPELINES_DIR=${PIPELINES_DIR:-./pipelines} +UV_LOOP="${UV_LOOP:-auto}" + # Function to reset pipelines reset_pipelines_dir() { if [ "$RESET_PIPELINES_DIR" = true ]; then @@ -150,6 +152,6 @@ fi if [[ "$MODE" == "run" || "$MODE" == "full" ]]; then echo "Running via Mode: $MODE" - uvicorn main:app --host "$HOST" --port "$PORT" --forwarded-allow-ips '*' + uvicorn main:app --host "$HOST" --port "$PORT" --forwarded-allow-ips '*' --loop "$UV_LOOP" fi From b4ba26bdaa1eb7374269ff6135808360af793b68 Mon Sep 17 00:00:00 2001 From: Samuel Bortolin Date: Mon, 14 Apr 2025 18:23:44 +0200 Subject: [PATCH 2/2] Renamed UV_LOOP to UVICORN_LOOP --- start.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/start.sh b/start.sh index e6b7de0..e175741 100755 --- a/start.sh +++ b/start.sh @@ -4,7 +4,7 @@ HOST="${HOST:-0.0.0.0}" # Default value for PIPELINES_DIR PIPELINES_DIR=${PIPELINES_DIR:-./pipelines} -UV_LOOP="${UV_LOOP:-auto}" +UVICORN_LOOP="${UVICORN_LOOP:-auto}" # Function to reset pipelines reset_pipelines_dir() { @@ -152,6 +152,6 @@ fi if [[ "$MODE" == "run" || "$MODE" == "full" ]]; then echo "Running via Mode: $MODE" - uvicorn main:app --host "$HOST" --port "$PORT" --forwarded-allow-ips '*' --loop "$UV_LOOP" + uvicorn main:app --host "$HOST" --port "$PORT" --forwarded-allow-ips '*' --loop "$UVICORN_LOOP" fi