Commit 994641d
fix(k8s): replace blocking time.sleep with asyncio.sleep in _wait_for_sandbox_ready
When the workload is not yet visible after creation, the polling loop
fell into a time.sleep branch instead of await asyncio.sleep. This
blocked the event loop during sandbox creation, preventing FastAPI from
handling other requests (including /health), which could cause liveness
probe failures and pod restarts.
Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>1 parent d14932e commit 994641d
1 file changed
Lines changed: 1 addition & 1 deletion
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
196 | 196 | | |
197 | 197 | | |
198 | 198 | | |
199 | | - | |
| 199 | + | |
200 | 200 | | |
201 | 201 | | |
202 | 202 | | |
| |||
0 commit comments