Skip to content

fix(env): run DockerManager readiness probe without blocking the asyncio event loop (#274) - #282

Open
PiedPiper911 wants to merge 1 commit into
TencentCloudADP:mainfrom
PiedPiper911:fix/issue-274-docker-async
Open

fix(env): run DockerManager readiness probe without blocking the asyncio event loop (#274)#282
PiedPiper911 wants to merge 1 commit into
TencentCloudADP:mainfrom
PiedPiper911:fix/issue-274-docker-async

Conversation

@PiedPiper911

Copy link
Copy Markdown

@C:/Users/PiedPiper888/WorkBuddy/2026-08-03-14-30-56/pr_body_274.md

…cio event loop (TencentCloudADP#274)

`DockerManager.start_container` is an async method, but its readiness loop called
`requests.get(...)` (blocking I/O) and `time.sleep(...)` directly, which blocks the running
asyncio event loop and freezes other concurrent coroutines. Switch the blocking HTTP call to
`await asyncio.to_thread(requests.get, ...)` and the wait to `await asyncio.sleep(...)`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant