Repository navigation
Commit fd43f9c
committed
utils: run mermaid-py validation in a daemon thread so a hung request cannot block exit
mermaid-py calls requests.get with no timeout. When mermaid.ink never answers,
asyncio.wait_for gives up after 15s but the asyncio.to_thread worker stays
blocked, and interpreter shutdown joins it forever. Seen in practice: a
'codewiki generate --update' run finished its work and then hung ~13 h at exit.
Use a small daemon-thread helper instead; a stuck worker is abandoned at exit.1 parent 3e3d848 commit fd43f9c
1 file changed
Lines changed: 30 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
233 | 233 | | |
234 | 234 | | |
235 | 235 | | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
236 | 265 | | |
237 | 266 | | |
238 | 267 | | |
| |||
258 | 287 | | |
259 | 288 | | |
260 | 289 | | |
261 | | - | |
| 290 | + | |
262 | 291 | | |
263 | 292 | | |
264 | 293 | | |
| |||
0 commit comments