修正限流机制,将信号量从 5 更改为 50,以支持更多并发任务执行
All checks were successful
Sync Container Images / sync-images (push) Successful in 1m22s
All checks were successful
Sync Container Images / sync-images (push) Successful in 1m22s
This commit is contained in:
parent
2c735de7e7
commit
531ea9f1c2
2
sync.py
2
sync.py
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user