diff --git a/index-scheduler/src/utils.rs b/index-scheduler/src/utils.rs index e14da4d53..ca46e7ae6 100644 --- a/index-scheduler/src/utils.rs +++ b/index-scheduler/src/utils.rs @@ -114,19 +114,7 @@ impl IndexScheduler { } pub(crate) fn get_status(&self, rtxn: &RoTxn, status: Status) -> Result { - match status { - Status::Processing => { - let tasks = self - .processing_tasks - .read() - .map_err(|_| Error::CorruptedTaskQueue)? - .processing - .clone(); - - Ok(tasks) - } - status => Ok(self.status.get(rtxn, &status)?.unwrap_or_default()), - } + Ok(self.status.get(rtxn, &status)?.unwrap_or_default()) } pub(crate) fn put_status(