forked from mtusi2026/mtusi2026lab5
level 5 track 1
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user