feat(shipping-notice): 增强发货通知与订单抽取功能,支持多进程处理与紧急停止
- 移除不再使用的 SHIPPING_NOTICE_LAYOUT_PARSER_REVISION 配置 - 在环境配置中新增 SHIPPING_NOTICE_WORKER_CONCURRENCY 和 SHIPPING_NOTICE_JOB_RUNNING_TIMEOUT_SECONDS - 实现发货通知 worker 进程,支持并发处理订单抽取任务 - 引入紧急停止功能,允许管理员在运行中控制订单解析状态 - 更新相关 API,支持读取与设置紧急停止状态 - 增强文档与代码注释,反映新的业务逻辑与功能要求
This commit is contained in:
1 parent
d0fe084999
commit
b352c281d5
149 files changed
+12550
-1874
No files matched your search
@@ -381,8 +381,8 @@ def test_create_batch_defers_parse_without_structured(app, client):
|
||||
assert not (task.lines_json or [])
|
||||
|
||||
|
||||
def test_workspace_create_batch_from_notices_defers_parse_to_dify(app, client):
|
||||
"""聊天/工作台批量上传通知时应返回 envelope,并仅落 raw_text,首轮解析延后到 Dify。"""
|
||||
def test_workspace_create_batch_from_notices_awaits_order_extraction(app, client):
|
||||
"""聊天/工作台批量上传通知时应返回 envelope,并仅落 raw_text,等待订单抽取主链。"""
|
||||
headers = _workspace_headers(app)
|
||||
|
||||
res = client.post(
|
||||
@@ -476,7 +476,6 @@ def test_workspace_create_batch_from_notices_starts_orchestrator_when_enabled(ap
|
||||
"""开启编排器时,工作台上传接口应返回 orchestrator_started。"""
|
||||
headers = _workspace_headers(app)
|
||||
app.config["SHIPPING_NOTICE_BATCH_ORCHESTRATOR_ENABLED"] = True
|
||||
app.config["SHIPPING_NOTICE_DEFER_PARSE_TO_DIFY"] = True
|
||||
started: list[str] = []
|
||||
|
||||
def fake_start(batch_no: str | None) -> bool:
|
||||
|
||||
Reference in new issue
Block a user