Commit 68c2acf
fix: Isolate cleanup steps in Actor
- Wrap each cleanup step in `finalize()` (`event_manager.__aexit__`,
`_charging_manager_implementation.__aexit__`, `_save_actor_state`) with
independent `try/except` blocks
- Previously, if `event_manager.__aexit__()` raised, charging manager
exit and state persistence were skipped entirely
- Failures are now logged and don't prevent subsequent cleanup steps
from executing
---
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>__aexit__ to prevent cascading failures (#842)1 parent 04218d6 commit 68c2acf
1 file changed
+13
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
249 | 249 | | |
250 | 250 | | |
251 | 251 | | |
252 | | - | |
253 | | - | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
254 | 261 | | |
255 | 262 | | |
256 | | - | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
257 | 267 | | |
258 | 268 | | |
259 | 269 | | |
| |||
0 commit comments