Delete the persisted data when we cancel a task

This commit is contained in:
Kerollmops 2022-10-18 17:59:15 +02:00 committed by Clément Renault
parent f9c8fe5eaa
commit 79c4275bfc
No known key found for this signature in database
GPG Key ID: 92ADA4E935E71FA4

View File

@ -1043,7 +1043,7 @@ impl IndexScheduler {
// 2. We now have a list of tasks to cancel, cancel them // 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())? { 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.status = Status::Canceled;
task.canceled_by = Some(cancel_task_id); task.canceled_by = Some(cancel_task_id);
task.finished_at = Some(now); task.finished_at = Some(now);