fix(legal): increase NotebookLM query timeout from 90s to 180s for deep audits
This commit is contained in:
parent
fca335423e
commit
36c5e51566
1 changed files with 2 additions and 2 deletions
|
|
@ -144,11 +144,11 @@ class AILegalEngine:
|
||||||
env=env
|
env=env
|
||||||
)
|
)
|
||||||
try:
|
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:
|
except asyncio.TimeoutError:
|
||||||
try: proc.kill()
|
try: proc.kill()
|
||||||
except: pass
|
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()
|
out_str = stdout.decode('utf-8', errors='ignore').strip()
|
||||||
err_str = stderr.decode('utf-8', errors='ignore').strip()
|
err_str = stderr.decode('utf-8', errors='ignore').strip()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue