mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-11-25 22:34:28 +01:00
Throw the error if we can't register the tasks in the store
This commit is contained in:
parent
6e904d0997
commit
d21651c968
@ -438,12 +438,9 @@ impl IndexScheduler {
|
||||
(bitmap.insert(task.uid));
|
||||
})?;
|
||||
|
||||
match wtxn.commit() {
|
||||
Ok(()) => (),
|
||||
_e @ Err(_) => {
|
||||
self.delete_persisted_task_data(&task)?;
|
||||
// _e?;
|
||||
}
|
||||
if let Err(e) = wtxn.commit() {
|
||||
self.delete_persisted_task_data(&task)?;
|
||||
return Err(e.into());
|
||||
}
|
||||
|
||||
// If the registered task is a task cancelation
|
||||
|
Loading…
Reference in New Issue
Block a user