merge testing->tomerge/main #7
@@ -102,8 +102,8 @@ async def get_health(user: dict = Depends(require_viewer)) -> Any:
|
|||||||
import docker
|
import docker
|
||||||
|
|
||||||
if _docker_client is None:
|
if _docker_client is None:
|
||||||
_docker_client = docker.from_env()
|
_docker_client = await asyncio.to_thread(docker.from_env)
|
||||||
_docker_client.ping()
|
await asyncio.to_thread(_docker_client.ping)
|
||||||
_docker_healthy = True
|
_docker_healthy = True
|
||||||
_docker_detail = ""
|
_docker_detail = ""
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
|
|||||||
Reference in New Issue
Block a user