Skip to content

Commit ad5c364

Browse files
authored
Merge pull request #841 from qingyuppp/fix/k8s-wait-for-sandbox-blocking-sleep
fix(k8s): replace blocking time.sleep with asyncio.sleep in _wait_for_sandbox_ready
2 parents 858819d + 994641d commit ad5c364

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

server/opensandbox_server/services/k8s/kubernetes_service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ async def _wait_for_sandbox_ready(
197197

198198
if not workload:
199199
logger.debug(f"Workload not found yet for sandbox {sandbox_id}")
200-
time.sleep(poll_interval_seconds)
200+
await asyncio.sleep(poll_interval_seconds)
201201
continue
202202

203203
status_info = _normalize_create_status(

0 commit comments

Comments
 (0)