From 61ccfaf9bca159360160066d6e5f135b9b85cc7d Mon Sep 17 00:00:00 2001 From: Tamo Date: Thu, 10 Aug 2023 09:39:39 +0200 Subject: [PATCH] wake up after registering a task --- index-scheduler/src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/index-scheduler/src/lib.rs b/index-scheduler/src/lib.rs index df2dd1429..e1ca58a6b 100644 --- a/index-scheduler/src/lib.rs +++ b/index-scheduler/src/lib.rs @@ -777,6 +777,8 @@ impl IndexScheduler { let mut wtxn = this.env.write_txn().unwrap(); this.register_raw_task(&mut wtxn, &task).unwrap(); wtxn.commit().unwrap(); + // we received a new tasks, we must wake up + this.wake_up.signal(); }) .await .unwrap();