落地系统异常:大模型/TMS/建群故障停住本单并告警,后台可重试失败步骤。
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user