Commit ae327ca
authored
Fix event-loop-blocking time.sleep in async wait_for_weaviate (#2104)
The async ConnectionAsync.wait_for_weaviate startup-retry loop called
time.sleep(1), blocking the whole event loop for up to startup_period
seconds. Use await asyncio.sleep(1) so the loop stays responsive,
matching the async-sleep pattern already used elsewhere (retry.py,
export/executor.py). The synchronous wait_for_weaviate is unchanged.1 parent 25c3676 commit ae327ca
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
1159 | 1160 | | |
1160 | 1161 | | |
1161 | 1162 | | |
1162 | | - | |
| 1163 | + | |
1163 | 1164 | | |
1164 | 1165 | | |
1165 | 1166 | | |
| |||
0 commit comments