feat(fulfillment): 自动选号并补充精英宝典操作
- 增加直播履约自动选号 worker、重试与任务扫描 - 履约详情复用斗鱼任务能力开通宝典、充值和兑换皮肤 - 补充自动选号与精英宝典操作测试
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user