feat(freight-rpa): 批次R解耦编排层并切换 onhand/inbound 契约

将 RPA 编排收编至 freight_rpa,回调迁 /api/freight-rpa/*。
共享目录与 Worker 契约一次切换至 onhand/inbound/upload,
并补 outbound 骨架与 tt16 排程 job key 迁移。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
hugoandCursor committed 2026-10-17 23:18:48 +08:00
1 parent bf3154033b
commit ffc0d4a430
147 files changed
+4221 -2678

No files matched your search

+3 -3
View File
@@ -459,10 +459,10 @@ def test_rpa_pending_timeout_recheck_marks_task_needs_human_after_single_attempt
headers = _tool_headers(app)
trigger = tmp_path / "inventory_triggers"
trigger.mkdir()
app.config["FREIGHT_RPA_SHARED_INVENTORY_TRIGGER_DIR"] = str(trigger)
app.config["FREIGHT_RPA_INVENTORY_TIMEOUT_SECONDS"] = 1
app.config["FREIGHT_RPA_SHARED_ONHAND_TRIGGER_DIR"] = str(trigger)
app.config["FREIGHT_RPA_ONHAND_TIMEOUT_SECONDS"] = 1
monkeypatch.setattr(
"app.services.shipping_notice.rpa_worker_heartbeat.assert_inventory_rpa_worker_ready",
"app.services.freight_rpa.common.worker_heartbeat.assert_inventory_rpa_worker_ready",
lambda: None,
)