修正限流机制,将信号量从 5 更改为 50,以支持更多并发任务执行
All checks were successful
Sync Container Images / sync-images (push) Successful in 1m22s

This commit is contained in:
远野千束 2025-04-17 21:40:43 +08:00
parent 2c735de7e7
commit 531ea9f1c2

View File

@ -40,7 +40,7 @@ async def docker_push(image: str) -> int | None:
print(f"Pushing image {image}...")
return await run_command(f"docker push {image}")
semaphore = asyncio.Semaphore(5)
semaphore = asyncio.Semaphore(50)
async def limited_task[T: Any](task: Callable[[], Coroutine[None, None, T]]) -> T:
async with semaphore: