fix(deploy): 优化大表迁移并修复后台事件循环

This commit is contained in:
yml
2026-11-20 22:11:54 +08:00
parent 071d45ad1d
commit 409e22be90
7 changed files with 28 additions and 5 deletions
+2 -1
View File
@@ -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: