diff --git a/index-scheduler/src/lib.rs b/index-scheduler/src/lib.rs index fc017395e..1f984e733 100644 --- a/index-scheduler/src/lib.rs +++ b/index-scheduler/src/lib.rs @@ -796,7 +796,7 @@ impl IndexScheduler { // Return true if there is at least one task that is processing. pub fn is_task_processing(&self) -> Result { - Ok(self.processing_tasks.read().unwrap().processing.is_empty()) + Ok(!self.processing_tasks.read().unwrap().processing.is_empty()) } /// Return true iff there is at least one task associated with this index