perf(douyu): 拆分支付轮询并扩展查询并发
This commit is contained in:
@@ -109,6 +109,10 @@ async def lifespan(app: FastAPI):
|
||||
start_integration_outbox_worker,
|
||||
stop_integration_outbox_worker,
|
||||
)
|
||||
from .services.payment_poll_scheduler import (
|
||||
start_payment_poll_scheduler,
|
||||
stop_payment_poll_scheduler,
|
||||
)
|
||||
from .services.platform_fulfillment.auto_allocator import (
|
||||
start_platform_fulfillment_auto_allocator,
|
||||
stop_platform_fulfillment_auto_allocator,
|
||||
@@ -123,9 +127,11 @@ async def lifespan(app: FastAPI):
|
||||
start_platform_fulfillment_reconciler()
|
||||
start_platform_fulfillment_auto_allocator()
|
||||
start_binding_poll_scheduler()
|
||||
start_payment_poll_scheduler()
|
||||
try:
|
||||
yield
|
||||
finally:
|
||||
stop_payment_poll_scheduler()
|
||||
stop_binding_poll_scheduler()
|
||||
stop_platform_fulfillment_auto_allocator()
|
||||
stop_platform_fulfillment_reconciler()
|
||||
|
||||
Reference in New Issue
Block a user