wake up after registering a task

This commit is contained in:
Tamo 2023-08-10 09:39:39 +02:00
parent f0c4d36ff7
commit 61ccfaf9bc

View File

@ -777,6 +777,8 @@ impl IndexScheduler {
let mut wtxn = this.env.write_txn().unwrap(); let mut wtxn = this.env.write_txn().unwrap();
this.register_raw_task(&mut wtxn, &task).unwrap(); this.register_raw_task(&mut wtxn, &task).unwrap();
wtxn.commit().unwrap(); wtxn.commit().unwrap();
// we received a new tasks, we must wake up
this.wake_up.signal();
}) })
.await .await
.unwrap(); .unwrap();