Recover stalled database connections and skip unreachable chat recipients
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2026-09-13 20:21:20 +09:00
parent 8094cbb8f7
commit d5a9c13b68
10 changed files with 122 additions and 14 deletions

View File

@@ -54,6 +54,12 @@ compose run --rm --no-deps bot python -m alembic upgrade head
compose run --rm --no-deps bot python scripts/check_schema.py
compose up -d --no-build --wait --wait-timeout 180 bot
docker exec lottery_bot python -m src.core.health
echo "Verifying application health and restart count for 120 seconds"
for attempt in 1 2 3 4 5 6 7 8; do
sleep 15
docker exec lottery_bot python -m src.core.health
test "$(docker inspect --format '{{.RestartCount}}' lottery_bot)" -eq 0
done
ln -s "$release" "$root/current.$build"
mv -Tf "$root/current.$build" "$root/current"
printf '%s\n' "$build" > "$root/last-build"