mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-02-22 02:25:32 +08:00
Delete the persisted data when we cancel a task
This commit is contained in:
parent
4f1c0535b4
commit
cc6e2fd1e8
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user