chore: optimise query and script

This commit is contained in:
Abhishek Kumar 2026-02-19 18:30:04 +05:30
parent 9ac56b3b33
commit 0791975864
2 changed files with 11 additions and 11 deletions

View file

@ -76,7 +76,8 @@ if [[ -f "$ENV_FILE" ]]; then
fi
FASTAPI_PORT=${FASTAPI_PORT:-8000}
FASTAPI_WORKERS=${FASTAPI_WORKERS:-1}
CPU_CORES=$(nproc 2>/dev/null || sysctl -n hw.ncpu 2>/dev/null || echo 1)
FASTAPI_WORKERS=${FASTAPI_WORKERS:-$CPU_CORES}
###############################################################################
### 2) Define services