Commit 8f341bb
fix(vm): event-style log drain for run_deferred_main (#24)
Replace the fixed 150ms post-exit sleep with a bounded poll: wait until
container.json stops growing for one 40ms interval (1s cap). Faster when the
shim's log processor has already drained, safer when it lags.
Co-authored-by: Roy Lin <roylin@a3s.box>1 parent d1fd68b commit 8f341bb
1 file changed
Lines changed: 19 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
530 | 530 | | |
531 | 531 | | |
532 | 532 | | |
533 | | - | |
534 | | - | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
535 | 552 | | |
536 | 553 | | |
537 | 554 | | |
| |||
0 commit comments