mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 20:37:15 +02:00
Throw the error if we can't register the tasks in the store
This commit is contained in:
parent
9945f984db
commit
0bbda61169
1 changed files with 3 additions and 6 deletions
|
@ -438,12 +438,9 @@ impl IndexScheduler {
|
||||||
(bitmap.insert(task.uid));
|
(bitmap.insert(task.uid));
|
||||||
})?;
|
})?;
|
||||||
|
|
||||||
match wtxn.commit() {
|
if let Err(e) = wtxn.commit() {
|
||||||
Ok(()) => (),
|
self.delete_persisted_task_data(&task)?;
|
||||||
_e @ Err(_) => {
|
return Err(e.into());
|
||||||
self.delete_persisted_task_data(&task)?;
|
|
||||||
// _e?;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// If the registered task is a task cancelation
|
// If the registered task is a task cancelation
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue