diff --git a/deploy/profile-scripts/per_stock_reassess.py b/deploy/profile-scripts/per_stock_reassess.py index 4e976561..d06c471d 100644 --- a/deploy/profile-scripts/per_stock_reassess.py +++ b/deploy/profile-scripts/per_stock_reassess.py @@ -441,7 +441,7 @@ def main(): if _prompt: try: # 2026-08-13 超时修复:timeout 150→90, retries 1→0(3只×(90+90+20)=600s临界,减到90+0重试=270s安全) - _llm_result = call_llm(_prompt, max_tokens=None, timeout=90, retries=0, backoff=0) # 文档: 不指定max_tokens + _llm_result = call_llm(_prompt, max_tokens=None, timeout=300, retries=0, backoff=0) # 2026-08-24 90→300: ocg_router单key上游180s+失败换key重试,90s客户端先断=自己限死自己 if _llm_result["ok"]: _full_analysis_text = _llm_result["content"] print(f" ✅ LLM12维分析完成({len(_full_analysis_text)}字, {_llm_result['elapsed']:.1f}s)", flush=True) diff --git a/deploy/profile-scripts/price_monitor.py b/deploy/profile-scripts/price_monitor.py index 2d490b9e..529ba145 100644 --- a/deploy/profile-scripts/price_monitor.py +++ b/deploy/profile-scripts/price_monitor.py @@ -128,7 +128,7 @@ try: try: _r = _sp2.run( [sys.executable, _REASSESS_SCRIPT, code], - capture_output=True, text=True, timeout=180 + capture_output=True, text=True, timeout=600 # 2026-08-24 180→600: 子进程含collect_data+LLM(300s上限),并发排队下给足 ) _mark_reassess(code) # 2026-08-24 防鬼消息:子进程失败不得继续读旧策略冒充"重评结论" @@ -635,7 +635,7 @@ def run_once(round_label=""): pass with open(_lk, "w") as _f: _f.write(str(os.getpid())) - signal.alarm(300) # 2026-08-24 120→300:监控面扩到112只+撞锁等待,120s在refresh阶段就被杀,zones循环跑不到(603920盲区第三环) + signal.alarm(600) # 2026-08-24 120→300→600:重评并发后一轮最多6只LLM×~90s,600s覆盖整轮 label = f" [{round_label}]" if round_label else "" start = time.time()