From 8e9b2804426070248ecf21e599dd77c42c1d5c28 Mon Sep 17 00:00:00 2001 From: xxm Date: Sat, 22 Aug 2026 01:27:46 +0800 Subject: [PATCH] =?UTF-8?q?fix(promote=5Fcandidates):=20DB=E9=94=81?= =?UTF-8?q?=E8=87=AA=E5=8A=A8=E9=87=8D=E8=AF=95(busy=5Ftimeout+=E6=8C=87?= =?UTF-8?q?=E6=95=B0=E9=80=80=E9=81=BF5=E6=AC=A1)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy/profile-scripts/promote_candidates.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deploy/profile-scripts/promote_candidates.py b/deploy/profile-scripts/promote_candidates.py index 9de0ca9a..f1bad2f9 100644 --- a/deploy/profile-scripts/promote_candidates.py +++ b/deploy/profile-scripts/promote_candidates.py @@ -77,7 +77,7 @@ def main(): (code,) ).fetchone() if exists: - conn.execute("UPDATE candidates SET promoted=1 WHERE code=?", (code,)) + _exec_retry(conn, "UPDATE candidates SET promoted=1 WHERE code=?", (code,)) processed += 1 continue @@ -258,7 +258,7 @@ def main(): """, (code, name, _price, el, eh, sl, tp, timing_signal, action, _rr, source_strategy, now, now)) newly_added = cur.rowcount > 0 - conn.execute("UPDATE candidates SET promoted=1 WHERE code=?", (code,)) + _exec_retry(conn, "UPDATE candidates SET promoted=1 WHERE code=?", (code,)) if newly_added: promoted += 1 processed += 1