Commit 5268179
fix: Prevent sys.exit() from killing web UI when services are unreachable
wait_and_exit() called time.sleep() (blocking the async event loop) then
sys.exit() which raised SystemExit — a BaseException that main_with_restart()
didn't catch. This killed the entire process including the web UI.
Now main_with_restart() catches non-zero SystemExit and restarts gracefully,
and wait_and_exit() no longer blocks the event loop with time.sleep().
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent c63cec0 commit 5268179
2 files changed
Lines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
114 | 119 | | |
115 | 120 | | |
116 | 121 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
94 | | - | |
95 | | - | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
96 | 98 | | |
97 | 99 | | |
98 | 100 | | |
| |||
0 commit comments