[eric] apps: a first boot's pip install gets a real deadline, so a loaded machine stops killing new apps at 60s

This commit is contained in:
ciregenz
2026-08-15 23:24:01 -07:00
parent d1b9c2c5bd
commit 4bee0ff18f
2 changed files with 50 additions and 1 deletions
+9 -1
View File
@@ -70,7 +70,15 @@ if [[ "${BACKEND_PORT}" == "NONE" || -z "${BACKEND_PORT}" || ! -f "$ROOT_DIR/bac
done
else
BACKEND_URL="http://localhost:${BACKEND_PORT:-8324}/api/health/check"
MAX_WAIT=60
# First boot runs a full venv create + pip install, which takes minutes on a loaded machine;
# a 60s wall clock killed exactly those boots mid-install (measured live: "Installing build
# dependencies" -> "failed to start within 60s" with 10 agents running). The sentinel is only
# written after a successful install, so its absence means the slow path is ahead of us.
if [ -f "$ROOT_DIR/backend/.venv/.openswarm_installed" ]; then
MAX_WAIT=60
else
MAX_WAIT=600
fi
echo "Starting backend..."
echo ""