Skip to content

Commit ea37283

Browse files
Trecekclaude
andcommitted
fix(review): add unconditional mark_dirty() in _apply_stale_dispatch
resolve_stale_running only calls mark_dirty() on the dead-dispatch path. The reaper unconditionally mutates dispatch fields afterward (ended_at, reaper_reason, reaper_dispatch_id, tombstone, reaper event), so mark_dirty() must be called unconditionally to ensure persistence. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent ef6217a commit ea37283

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/autoskillit/fleet/_dispatch_reaper.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ def _apply_stale_dispatch(
7171

7272
_append_reaper_event(dispatch, reason, reaper_dispatch_id)
7373

74+
m.mark_dirty()
75+
7476

7577
def _mark_dead_pid(
7678
dry_run: bool,

0 commit comments

Comments
 (0)