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

+2 -2
View File
@@ -30,7 +30,7 @@ def test_prepare_schedule_queue_recovers_transfer_waiting_source_jobs_every_cycl
"""
from app.services.in_transit_transfer import inbound_callback_bridge
from app.services.schedule import queue_service
from app.services.shipping_notice import rpa_worker_heartbeat_alert
from app.services.freight_rpa.common import worker_heartbeat_alert
calls: list[int] = []
@@ -42,7 +42,7 @@ def test_prepare_schedule_queue_recovers_transfer_waiting_source_jobs_every_cycl
return {"skipped": True, "reason": "test_stub"}
monkeypatch.setattr(inbound_callback_bridge, "recover_stale_waiting_source_jobs", _fake_recover)
monkeypatch.setattr(rpa_worker_heartbeat_alert, "maybe_alert_rpa_worker_status", _fake_heartbeat)
monkeypatch.setattr(worker_heartbeat_alert, "maybe_alert_rpa_worker_status", _fake_heartbeat)
monkeypatch.setattr(queue_service, "_worker_initialized", False)
assert prepare_schedule_queue() == 0