fix: increase health check timeout to 240s for HDD startup delay
The container takes ~183s to become healthy on the slow NAS HDD. 90 iterations at 2s (180s) kept timing out by ~3 seconds. Increased to 120 iterations (240s) for safety margin. 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..90}; do
|
for i in {1..120}; 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/90) Status: $STATUS"
|
echo "Waiting... ($i/120) 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