huskies: merge 1094 bug delete_story leaks zombie rows in pipeline_items shadow table — 176 tombstoned items still report non-terminal stages

This commit is contained in:
dave
2026-05-15 12:21:17 +00:00
parent d944885ce9
commit 2857c3b46b
7 changed files with 201 additions and 8 deletions
+4
View File
@@ -360,6 +360,10 @@ pub(crate) async fn init_subsystems(app_state: &Arc<SessionState>, cwd: &Path, i
// Story 1052: remove stale MergeJob entries for terminal-stage
// stories so they can never cause "FAILED" labels in the UI.
crdt_state::purge_done_stage_merge_jobs();
// Story 1094: delete pipeline_items rows whose CRDT entry is
// tombstoned but whose row survived with a non-terminal stage
// (pre-1094 fire-and-forget delete could be lost on restart).
crdt_state::migrate_zombie_pipeline_rows().await;
}
}
}