fix(deploy): 优化大表迁移并修复后台事件循环
This commit is contained in:
@@ -38,9 +38,10 @@ def start_douyu_batch(
|
||||
concurrency: int,
|
||||
loop: asyncio.AbstractEventLoop | None = None,
|
||||
log_queue: asyncio.Queue | None = None,
|
||||
capture_event_loop: bool = True,
|
||||
) -> None:
|
||||
"""Create the batch coordinator; websocket logging is optional."""
|
||||
if loop is None:
|
||||
if loop is None and capture_event_loop:
|
||||
try:
|
||||
loop = asyncio.get_running_loop()
|
||||
except RuntimeError:
|
||||
|
||||
@@ -2052,6 +2052,7 @@ async def start_binding(
|
||||
task_type="get_bind_qr",
|
||||
payload={},
|
||||
concurrency=1,
|
||||
capture_event_loop=False,
|
||||
)
|
||||
return get_task_detail(db, task.id)
|
||||
|
||||
@@ -2269,6 +2270,7 @@ async def confirm_binding(
|
||||
task_type="confirm_bind",
|
||||
payload={},
|
||||
concurrency=1,
|
||||
capture_event_loop=False,
|
||||
)
|
||||
return get_task_detail(db, task.id)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user