perf(worker): 调高斗鱼任务与批次执行并发默认上限

This commit is contained in:
yml
2026-11-28 14:23:57 +08:00
parent 2013a9bdeb
commit 82f2cc21ac
11 changed files with 96 additions and 112 deletions
+2 -2
View File
@@ -25,9 +25,9 @@ def _env_positive_int(name: str, default: int) -> int:
DOUYU_BATCH_CREATE_CONCURRENCY = _env_positive_int(
"DOUYU_BATCH_CREATE_CONCURRENCY",
2,
4,
)
DOUYU_MAX_ACTIVE_BATCHES = _env_positive_int("DOUYU_MAX_ACTIVE_BATCHES", 10)
DOUYU_MAX_ACTIVE_BATCHES = _env_positive_int("DOUYU_MAX_ACTIVE_BATCHES", 25)
def _run_batch(