feat(fulfillment): 自动选号并补充精英宝典操作

- 增加直播履约自动选号 worker、重试与任务扫描
- 履约详情复用斗鱼任务能力开通宝典、充值和兑换皮肤
- 补充自动选号与精英宝典操作测试
This commit is contained in:
yml
2026-11-18 10:59:20 +08:00
parent bba3d9dac9
commit 8ba6379687
6 changed files with 501 additions and 6 deletions
+6
View File
@@ -105,6 +105,10 @@ async def lifespan(app: FastAPI):
start_integration_outbox_worker,
stop_integration_outbox_worker,
)
from .services.platform_fulfillment.auto_allocator import (
start_platform_fulfillment_auto_allocator,
stop_platform_fulfillment_auto_allocator,
)
from .services.platform_fulfillment.reconciler import (
start_platform_fulfillment_reconciler,
stop_platform_fulfillment_reconciler,
@@ -112,9 +116,11 @@ async def lifespan(app: FastAPI):
start_integration_outbox_worker()
start_platform_fulfillment_reconciler()
start_platform_fulfillment_auto_allocator()
try:
yield
finally:
stop_platform_fulfillment_auto_allocator()
stop_platform_fulfillment_reconciler()
stop_integration_outbox_worker()
stop_scheduler()