feat(fulfillment): 增加签名 Webhook 事务 Outbox

- 新增直播履约状态事务 Outbox 与签名投递 worker
- 增加 order_site 状态回传、重试和低频对账兜底
- 补充 Outbox、签名校验与集成接口测试
This commit is contained in:
yml
2026-11-18 10:59:20 +08:00
parent 00c4a268c2
commit bba3d9dac9
17 changed files with 967 additions and 114 deletions
+13
View File
@@ -101,9 +101,22 @@ async def lifespan(app: FastAPI):
register_default_jobs()
start_scheduler()
from .services.integration import (
start_integration_outbox_worker,
stop_integration_outbox_worker,
)
from .services.platform_fulfillment.reconciler import (
start_platform_fulfillment_reconciler,
stop_platform_fulfillment_reconciler,
)
start_integration_outbox_worker()
start_platform_fulfillment_reconciler()
try:
yield
finally:
stop_platform_fulfillment_reconciler()
stop_integration_outbox_worker()
stop_scheduler()