feat(fulfillment): 增加签名 Webhook 事务 Outbox
- 新增直播履约状态事务 Outbox 与签名投递 worker - 增加 order_site 状态回传、重试和低频对账兜底 - 补充 Outbox、签名校验与集成接口测试
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user