level 5 track 1

This commit is contained in:
2026-11-22 19:20:51 +03:00
parent 813fc03da5
commit b3a8b2e4e0
8 changed files with 619 additions and 10 deletions
+5
View File
@@ -102,6 +102,11 @@ def worker_concurrency() -> int:
return _bounded_int('WORKER_CONCURRENCY', 1, 8)
def max_inflight_jobs() -> int:
"""How many queued plus processing attachments may exist. The next upload is 429."""
return _bounded_int('MAX_INFLIGHT_JOBS', 20, 100000)
def _bounded_float(name: str, default: float, upper: float) -> float:
raw = os.getenv(name, '').strip()
try: