Recover stalled database connections and skip unreachable chat recipients
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user