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
@@ -149,6 +149,22 @@ def test_mineru_candidate_preserves_table_structure_but_blocks_cell_evidence():
|
||||
assert candidate.capability.issues == ['mineru_cell_coordinates_missing']
|
||||
|
||||
|
||||
def test_mineru_candidate_accepts_async_table_html_and_page_no_fields():
|
||||
"""异步结果使用 table_html/content_type/page_no 时仍须恢复同一表格候选。"""
|
||||
payload = _mineru_payload()
|
||||
content = json.loads(payload['results']['fixture']['content_list'])
|
||||
table = content[0]
|
||||
table['content_type'] = table.pop('type')
|
||||
table['table_html'] = table.pop('table_body')
|
||||
table['page_no'] = table.pop('page_idx') + 1
|
||||
payload['results']['fixture']['content_list'] = json.dumps(content)
|
||||
|
||||
candidate = parse_mineru_candidate(payload)
|
||||
|
||||
assert len(candidate.pages[0].tables) == 1
|
||||
assert candidate.pages[0].tables[0].row_count == 2
|
||||
|
||||
|
||||
def test_mineru_capability_accepts_explicit_cell_coordinate_objects():
|
||||
"""服务未来直接返回带行列身份的 cell bbox 时能力报告才能标记证据就绪。"""
|
||||
candidate = parse_mineru_candidate(_mineru_payload(with_cell_coordinates=True))
|
||||
|
||||
Reference in new issue
Block a user