Skip to content

Commit b42147b

Browse files
authored
fix: Temp fix for workers (#1902)
1 parent 6c6070a commit b42147b

1 file changed

Lines changed: 9 additions & 7 deletions

File tree

compose/fastapi/start-backend-datadog

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,15 @@ set -o pipefail
1313
set -o nounset
1414

1515

16-
NUM_WORKERS=1
17-
if command -v nproc >/dev/null 2>&1; then
18-
NUM_WORKERS=$(nproc)
19-
echo "Starting app with $NUM_WORKERS workers..."
20-
else
21-
echo "No nproc, defaulting to 1 worker..."
22-
fi
16+
#NUM_WORKERS=1
17+
#if command -v nproc >/dev/null 2>&1; then
18+
# NUM_WORKERS=$(nproc)
19+
# echo "Starting app with $NUM_WORKERS workers..."
20+
#else
21+
# echo "No nproc, defaulting to 1 worker..."
22+
#fi
23+
24+
NUM_WORKERS=2
2325

2426
# https://www.uvicorn.org/settings/
2527
export UVICORN_HOST="0.0.0.0"

0 commit comments

Comments
 (0)