落地系统异常:大模型/TMS/建群故障停住本单并告警,后台可重试失败步骤。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-09-21 14:01:49 +08:00
co-authored by Cursor
parent a5e73c01ae
commit 4381966c4e
26 changed files with 2098 additions and 72 deletions
+13 -2
View File
@@ -73,8 +73,19 @@ def claim_and_apply_wake(
kind=str(data.get("kind") or ""),
detail=dict(data.get("detail") or {}),
)
graph.wake_from_worker(wake)
logger.info("wake 已处理 id=%s thread=%s kind=%s", entry_id, wake.thread_id, wake.kind)
if wake.kind == "system_exception_retry":
from agent.policy.system_exception import run_admin_retry
result = run_admin_retry(wake.inquiry_no)
logger.info(
"系统异常重试 id=%s wo=%s ok=%s",
entry_id,
wake.inquiry_no,
result.get("ok"),
)
else:
graph.wake_from_worker(wake)
logger.info("wake 已处理 id=%s thread=%s kind=%s", entry_id, wake.thread_id, wake.kind)
except Exception: # noqa: BLE001
logger.exception("wake 处理失败 id=%s", entry_id)
finally: