feat: 询价流程接入事件异常等待起停

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-09-21 18:28:35 +08:00
co-authored by Cursor
parent fc1b85113d
commit a878b046d2
11 changed files with 131 additions and 5 deletions
+7
View File
@@ -163,7 +163,14 @@ def _deliver_quote_file(data: dict[str, Any], result: LibreOfficeResult) -> None
if wo:
try:
from agent.policy.air_text_flow import get_air_text_flow
from agent.policy.event_exception import WAIT_DEAL, start_wait
flow = get_air_text_flow()
start_wait(
getattr(flow, "_ledger", None) or getattr(flow, "ledger", None),
work_order_no=wo,
wait_kind=WAIT_DEAL,
)
get_air_text_flow().mark_wait_deal(touser, wo)
except Exception:
logger.exception("PDF 出文件后未能切到成交跟进 inquiry=%s", wo)