Implement TaskDeletion in the index scheduler

This commit is contained in:
Loïc Lecrenier 2022-10-06 16:53:21 +02:00 committed by Clément Renault
parent ee352b6c7c
commit 05753c663f
No known key found for this signature in database
GPG key ID: 92ADA4E935E71FA4
4 changed files with 248 additions and 14 deletions

View file

@ -71,7 +71,7 @@ impl BatchKind {
allow_index_creation,
settings_ids: vec![task_id],
}),
Kind::DumpExport | Kind::Snapshot | Kind::CancelTask => unreachable!(),
Kind::DumpExport | Kind::Snapshot | Kind::CancelTask | Kind::DeleteTasks => unreachable!(),
}
}
@ -320,7 +320,9 @@ impl BatchKind {
import_ids,
})
}
(_, Kind::CancelTask | Kind::DumpExport | Kind::Snapshot) => unreachable!(),
(_, Kind::CancelTask | Kind::DeleteTasks | Kind::DumpExport | Kind::Snapshot) => {
unreachable!()
}
(
BatchKind::IndexCreation { .. }
| BatchKind::IndexDeletion { .. }