add postgresql container to run tests in
All checks were successful
test-backend / test-x86_64 (push) Successful in 22s

This commit is contained in:
2025-05-25 19:43:00 +03:00
parent 393b426e85
commit 642c1fa944
5 changed files with 74 additions and 22 deletions

View File

@@ -16,7 +16,14 @@ db_params = {
'port': int(env.get('DB_PORT'))
}
db = psql.connect(**db_params)
db = None
for _ in range(5):
try:
db = psql.connect(**db_params)
except Exception as e:
print(f"Failed to connect ({e}), retrying...")
time.sleep(5)
class PassQueue:
def __init__(self):