From 79c4275bfc6e179e8ea5748e4423c37b6c42268f Mon Sep 17 00:00:00 2001 From: Kerollmops Date: Tue, 18 Oct 2022 17:59:15 +0200 Subject: [PATCH] Delete the persisted data when we cancel a task --- index-scheduler/src/batch.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index-scheduler/src/batch.rs b/index-scheduler/src/batch.rs index 6aef4c947..3e28a200e 100644 --- a/index-scheduler/src/batch.rs +++ b/index-scheduler/src/batch.rs @@ -1043,7 +1043,7 @@ impl IndexScheduler { // 2. We now have a list of tasks to cancel, cancel them for mut task in self.get_existing_tasks(wtxn, tasks_to_cancel.iter())? { - // TODO delete the content uuid of the task + self.delete_persisted_task_data(&task)?; task.status = Status::Canceled; task.canceled_by = Some(cancel_task_id); task.finished_at = Some(now);