From ff93b4e7232ce3b9cd8c42ac0c1652f396367c84 Mon Sep 17 00:00:00 2001 From: xxm Date: Tue, 25 Aug 2026 09:57:50 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20promote=E8=B0=83LLM=E5=AD=90=E8=BF=9B?= =?UTF-8?q?=E7=A8=8B=E5=89=8D=E5=85=88commit=E6=94=BE=E9=94=81=E2=80=94?= =?UTF-8?q?=E2=80=94=E6=8C=81=E5=86=99=E4=BA=8B=E5=8A=A1=E7=AD=89per=5Fsto?= =?UTF-8?q?ck=5Freassess(60-100s/=E5=8F=AA)=3D=E5=85=A8=E5=BA=93=E6=92=9E?= =?UTF-8?q?=E9=94=81(=E4=BB=8A=E6=97=A9=E5=BC=80=E7=9B=98=E8=BF=9E?= =?UTF-8?q?=E7=8E=AF=E9=94=81=E4=B8=BB=E5=AB=8C=E7=96=91)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy/profile-scripts/promote_candidates.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/deploy/profile-scripts/promote_candidates.py b/deploy/profile-scripts/promote_candidates.py index 42daa66e..b2e63d51 100644 --- a/deploy/profile-scripts/promote_candidates.py +++ b/deploy/profile-scripts/promote_candidates.py @@ -182,6 +182,7 @@ def main(): # 数据异常:先重评(LLM算正确区间),成功则用正确区间,失败则跳过 print(f" ⚠️ {code} {name} 买入区{el}~{eh} 偏离现价{_dev:.0f}%(数据异常),先重评校准...", flush=True) try: + conn.commit() # 2026-08-25 放锁:LLM子进程60-100s,持写锁等=全库撞锁(开盘连环撞锁主嫌疑) _r = subprocess.run(["/home/hmo/MoFin/venv/bin/python", "/home/hmo/MoFin/deploy/profile-scripts/per_stock_reassess.py", code], capture_output=True, text=True, timeout=REASSESS_TIMEOUT) @@ -270,6 +271,7 @@ def main(): if newly_added: try: import subprocess as _sp + conn.commit() # 2026-08-25 放锁:LLM子进程期间不持写锁 r = _sp.run(["python3", "/home/hmo/MoFin/deploy/profile-scripts/per_stock_reassess.py", code], capture_output=True, text=True, timeout=REASSESS_TIMEOUT) if r.returncode == 0: