feat(in-transit-transfer): 自动调拨联动收料就绪并分层来源错误
- 调度整合:退役 in_transit_receipt_file_job,收料归档收敛 shipping_receipt_rpa_archive,排程注册表统一 - 自动调拨 Job:调拨前确保各来源当日收料文件就绪(缺失自动触发收料 RPA),严格等量匹配后生成 ERP 调拨单 - worker 手动唤醒:排程工作台支持手动唤醒与 runs 透视,heartbeat 协议同步 - 收料缺失幸存 T2:parse_failed 状态落库(迁移 q4c5) - 来源错误分层与 stale 时钟换源:改挂 inventory_checked_at 库存查得时刻,展示阈值与执行门禁解耦(迁移 t5a6) - 新增 wecom_sender 企微通知:每非空 Run 汇总一条,通知失败不影响 ERP 结果 - 同步排程工作台/调拨卡片前端、chat/admin 文案四语言、RPA 脚本与测试全家
This commit is contained in:
1 parent
993e581135
commit
abf3d48927
144 files changed
+10161
-2132
No files matched your search
@@ -24,6 +24,7 @@ def _load_freight_rpa_heartbeat_module():
|
||||
def test_build_heartbeat_payload_includes_shared_scope_id(monkeypatch):
|
||||
module = _load_freight_rpa_heartbeat_module()
|
||||
|
||||
monkeypatch.delenv("FREIGHT_RPA_WORKER_ID", raising=False)
|
||||
monkeypatch.setenv("FREIGHT_RPA_SHARED_SCOPE_ID", "hxops-rpa-test-data")
|
||||
payload = module.build_heartbeat_payload(
|
||||
trigger_dir=r"C:\HxopsRpaTest\data\inventory_triggers",
|
||||
@@ -31,6 +32,19 @@ def test_build_heartbeat_payload_includes_shared_scope_id(monkeypatch):
|
||||
)
|
||||
assert payload["shared_scope_id"] == "hxops-rpa-test-data"
|
||||
assert payload["trigger_dir"] == r"C:\HxopsRpaTest\data\inventory_triggers"
|
||||
assert payload["capabilities"] == ["inventory_export"]
|
||||
|
||||
|
||||
def test_build_heartbeat_payload_receipt_worker_declares_receipt_export(monkeypatch):
|
||||
"""收料 Worker(*-receipt 或 receipt trigger 路径)须声明 receipt_export。"""
|
||||
module = _load_freight_rpa_heartbeat_module()
|
||||
monkeypatch.setenv("FREIGHT_RPA_WORKER_ID", "WIN-RPA-01-receipt")
|
||||
payload = module.build_heartbeat_payload(
|
||||
trigger_dir=r"C:\HxopsRpaTest\data\freight_rpa\receipt\triggers",
|
||||
drop_dir=r"C:\HxopsRpaTest\data\freight_rpa\receipt\drop",
|
||||
)
|
||||
assert payload["capabilities"] == ["receipt_export"]
|
||||
assert payload["worker_id"].endswith("-receipt")
|
||||
|
||||
|
||||
def test_resolve_shared_scope_id_from_trigger_path(monkeypatch):
|
||||
|
||||
Reference in new issue
Block a user