diff --git a/admin-compliance/app/sdk/agent/_components/ComplianceCheckTab.tsx b/admin-compliance/app/sdk/agent/_components/ComplianceCheckTab.tsx index 05d2fc0b..c7505df1 100644 --- a/admin-compliance/app/sdk/agent/_components/ComplianceCheckTab.tsx +++ b/admin-compliance/app/sdk/agent/_components/ComplianceCheckTab.tsx @@ -202,9 +202,9 @@ export function ComplianceCheckTab() { setActiveCheckId(check_id) localStorage.setItem(STORAGE_KEY_CHECK_ID, check_id) - // Poll for results (max 15 min = 300 polls x 3s) + // Poll for results (max 25 min = 500 polls x 3s) let attempts = 0 - while (attempts < 300) { + while (attempts < 500) { await new Promise(r => setTimeout(r, 3000)) const pollRes = await fetch(`/api/sdk/v1/agent/compliance-check?check_id=${check_id}`) if (!pollRes.ok) { attempts++; continue } @@ -235,7 +235,7 @@ export function ComplianceCheckTab() { } attempts++ } - if (attempts >= 300) { + if (attempts >= 500) { localStorage.removeItem(STORAGE_KEY_CHECK_ID); setActiveCheckId('') throw new Error('Zeitlimit ueberschritten (15 Min)') } diff --git a/backend-compliance/compliance/api/agent_compliance_check_routes.py b/backend-compliance/compliance/api/agent_compliance_check_routes.py index 21634bad..26f399fb 100644 --- a/backend-compliance/compliance/api/agent_compliance_check_routes.py +++ b/backend-compliance/compliance/api/agent_compliance_check_routes.py @@ -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", [])