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:
@@ -142,7 +142,10 @@ pub async fn delete_work_item(
|
||||
}
|
||||
|
||||
// 5. Delete from database content store and shadow table.
|
||||
crate::db::delete_item(story_id);
|
||||
// Use the synchronous variant so the pipeline_items row is gone before we
|
||||
// return — the fire-and-forget channel cannot guarantee the DELETE commits
|
||||
// before a restart, which leaves zombie rows (bug 1094).
|
||||
crate::db::delete_item_sync(story_id).await;
|
||||
slog_warn!("[delete_work_item] Deleted '{story_id}' from content store / shadow table");
|
||||
|
||||
// 6. Remove the filesystem shadow file from work/N_stage/.
|
||||
|
||||
Reference in New Issue
Block a user