We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e1fe41d commit 92a682dCopy full SHA for 92a682d
packages/service-library/src/servicelib/docker_utils.py
@@ -1,3 +1,4 @@
1
+import asyncio
2
import logging
3
from collections.abc import AsyncIterator, Awaitable, Callable
4
from contextlib import AsyncExitStack, asynccontextmanager
@@ -347,7 +348,7 @@ async def _(app: FastAPI) -> AsyncIterator[None]:
347
348
reraise=True,
349
)
350
async def wait_till_docker_api_proxy_is_responsive(app: FastAPI) -> None:
- await get_remote_docker_client(app).version()
351
+ await asyncio.wait_for(get_remote_docker_client(app).version(), timeout=5)
352
353
354
def get_remote_docker_client(app: FastAPI) -> aiodocker.Docker:
0 commit comments