Лабораторная 2:Оценка 4
Skeleton contracts / contracts (pull_request) Canceled after 0s

This commit is contained in:
2026-10-19 23:09:12 +03:00
parent 65003b6119
commit 3af3a132ca
26 changed files with 1283 additions and 34 deletions
+19
View File
@@ -0,0 +1,19 @@
#!/bin/sh
set -eu
python - <<'PY'
import os, time
from sqlalchemy import create_engine, text
url = os.environ["DATABASE_URL"]
engine = create_engine(url, connect_args={"connect_timeout": 3})
for attempt in range(60):
try:
with engine.connect() as connection:
connection.execute(text("SELECT 1"))
break
except Exception:
if attempt == 59:
raise
time.sleep(1)
PY
alembic upgrade head
exec "$@"