fix: increase health check timeout from 60s to 180s for slow HDD
The NAS HDD is slow enough that container startup can exceed 60 seconds. The app was starting successfully (Uvicorn running) but the health check timed out just before the container became healthy. Increased to 90 iterations at 2s = 180s max wait. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -326,13 +326,13 @@ jobs:
|
|||||||
|
|
||||||
# Wait for container to be healthy
|
# Wait for container to be healthy
|
||||||
echo "Waiting for container to be healthy..."
|
echo "Waiting for container to be healthy..."
|
||||||
for i in {1..30}; do
|
for i in {1..90}; do
|
||||||
STATUS=$(docker inspect --format='{{.State.Health.Status}}' nas-dashboard 2>/dev/null || echo "starting")
|
STATUS=$(docker inspect --format='{{.State.Health.Status}}' nas-dashboard 2>/dev/null || echo "starting")
|
||||||
if [ "$STATUS" = "healthy" ]; then
|
if [ "$STATUS" = "healthy" ]; then
|
||||||
echo "✅ Container is healthy"
|
echo "✅ Container is healthy"
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
echo "Waiting... ($i/30) Status: $STATUS"
|
echo "Waiting... ($i/90) Status: $STATUS"
|
||||||
sleep 2
|
sleep 2
|
||||||
done
|
done
|
||||||
STATUS=$(docker inspect --format='{{.State.Health.Status}}' nas-dashboard 2>/dev/null || echo "unknown")
|
STATUS=$(docker inspect --format='{{.State.Health.Status}}' nas-dashboard 2>/dev/null || echo "unknown")
|
||||||
|
|||||||
Reference in New Issue
Block a user