выполнение лр2 на 4
Skeleton contracts / contracts (pull_request) Failing after 37s

This commit is contained in:
Ilya
2026-10-09 12:44:56 +03:00
parent e914e384fc
commit 13fa1852cb
30 changed files with 585 additions and 238 deletions
-5
View File
@@ -1,4 +1,3 @@
"""Runtime configuration from environment; secrets are read from *_FILE paths."""
from __future__ import annotations
import os
@@ -6,7 +5,6 @@ from typing import Optional
def _secret(name: str) -> Optional[str]:
"""NAME wins over NAME_FILE; NAME_FILE keeps the value out of `docker inspect`."""
value = os.environ.get(name)
if value:
return value.strip()
@@ -29,7 +27,6 @@ DATABASE_URL = _secret("DATABASE_URL")
CACHE_URL = _secret("CACHE_URL")
SESSION_TTL_SECONDS = _int("SESSION_TTL_SECONDS", 3600)
# Upper bound for one cached session entry; PostgreSQL is re-checked after it.
SESSION_CACHE_MAX_SECONDS = _int("SESSION_CACHE_MAX_SECONDS", 300)
DB_POOL_MAX = _int("DB_POOL_MAX", 10)
@@ -39,8 +36,6 @@ DB_COMMAND_TIMEOUT = _float("DB_COMMAND_TIMEOUT", 5)
CACHE_TIMEOUT = _float("CACHE_TIMEOUT", 0.3)
CACHE_POOL_MAX = _int("CACHE_POOL_MAX", 20)
# After a cache error, skip the cache for this long instead of paying the timeout per request.
CACHE_RETRY_AFTER = _float("CACHE_RETRY_AFTER", 5)
# Argon2id hashing is CPU/RAM heavy: bound how many run at once.
PASSWORD_HASH_CONCURRENCY = _int("PASSWORD_HASH_CONCURRENCY", 4)