mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-03 03:47:02 +02:00
Introduce the ProcessingTasks struct
This commit is contained in:
parent
c9523c6f39
commit
703ba7a1fb
3 changed files with 54 additions and 15 deletions
|
@ -939,7 +939,7 @@ impl IndexScheduler {
|
|||
// 1. Remove from this list the tasks that we are not allowed to delete
|
||||
let enqueued_tasks = self.get_status(wtxn, Status::Enqueued)?;
|
||||
|
||||
let processing_tasks = &self.processing_tasks.read().unwrap().1;
|
||||
let processing_tasks = &self.processing_tasks.read().unwrap().processing.clone();
|
||||
|
||||
let all_task_ids = self.all_task_ids(&wtxn)?;
|
||||
let mut to_delete_tasks = all_task_ids & matched_tasks;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue