Commit b9657d2
refactor(agent): Tighten shutdown/startup cleanup in docker agent
- Narrow `except BaseException` to `except Exception` in __ainit__
cleanup: don't intercept KeyboardInterrupt/SystemExit propagation.
- Drop the impossible `if self.docker is not None` guard in shutdown()
(self.docker is non-Optional and set before any await in __ainit__).
- Remove the ornamental docker parameter on _purge_image; its sole
caller already passes self.docker.
Refs #11218
Refs #11226
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 801ed1e commit b9657d2
1 file changed
Lines changed: 8 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1563 | 1563 | | |
1564 | 1564 | | |
1565 | 1565 | | |
1566 | | - | |
| 1566 | + | |
1567 | 1567 | | |
1568 | 1568 | | |
1569 | 1569 | | |
| |||
1586 | 1586 | | |
1587 | 1587 | | |
1588 | 1588 | | |
1589 | | - | |
1590 | | - | |
1591 | | - | |
1592 | | - | |
| 1589 | + | |
| 1590 | + | |
| 1591 | + | |
1593 | 1592 | | |
1594 | 1593 | | |
1595 | 1594 | | |
| |||
1925 | 1924 | | |
1926 | 1925 | | |
1927 | 1926 | | |
1928 | | - | |
| 1927 | + | |
1929 | 1928 | | |
1930 | | - | |
| 1929 | + | |
| 1930 | + | |
| 1931 | + | |
1931 | 1932 | | |
1932 | 1933 | | |
1933 | 1934 | | |
| |||
1939 | 1940 | | |
1940 | 1941 | | |
1941 | 1942 | | |
1942 | | - | |
1943 | 1943 | | |
1944 | 1944 | | |
1945 | 1945 | | |
| |||
0 commit comments