fix(legal): increase NotebookLM query timeout from 90s to 180s for deep audits

This commit is contained in:
Admin 2026-10-15 12:02:45 +04:00
parent fca335423e
commit 36c5e51566

View file

@ -144,11 +144,11 @@ class AILegalEngine:
env=env
)
try:
stdout, stderr = await asyncio.wait_for(proc.communicate(), timeout=90.0)
stdout, stderr = await asyncio.wait_for(proc.communicate(), timeout=180.0)
except asyncio.TimeoutError:
try: proc.kill()
except: pass
return {"success": False, "error": "Таймаут обращения к NotebookLM (более 90 сек)", "source": "notebooklm"}
return {"success": False, "error": "Таймаут обращения к NotebookLM (более 180 сек)", "source": "notebooklm"}
out_str = stdout.decode('utf-8', errors='ignore').strip()
err_str = stderr.decode('utf-8', errors='ignore').strip()