fix: reduce Playwright timeout 180s→60s, increase poll limit 15→25min

This commit is contained in:
Benjamin Admin
2026-05-16 00:47:28 +02:00
parent 3dbf3aa34a
commit d45e08e25f
2 changed files with 6 additions and 6 deletions
@@ -387,11 +387,11 @@ async def _fetch_text(url: str) -> str:
"""
# 1. Consent-tester (Playwright-based, full JS rendering)
try:
async with httpx.AsyncClient(timeout=180.0) as client:
async with httpx.AsyncClient(timeout=60.0) as client:
resp = await client.post(
f"{CONSENT_TESTER_URL}/dsi-discovery",
json={"url": url, "max_documents": 5},
timeout=180.0,
json={"url": url, "max_documents": 3},
timeout=60.0,
)
if resp.status_code == 200:
docs = resp.json().get("documents", [])