IndexScheduler::update_task now merges the task.network and accepts &mut Task

This commit is contained in:
Louis Dureuil
2025-07-29 13:48:33 +02:00
parent 56c7f54804
commit bd97a7cc19
2 changed files with 24 additions and 3 deletions

View File

@ -268,7 +268,7 @@ impl IndexScheduler {
self.queue
.tasks
.update_task(&mut wtxn, &task)
.update_task(&mut wtxn, &mut task)
.map_err(|e| Error::UnrecoverableError(Box::new(e)))?;
}
if let Some(canceled_by) = canceled_by {
@ -349,7 +349,7 @@ impl IndexScheduler {
self.queue
.tasks
.update_task(&mut wtxn, &task)
.update_task(&mut wtxn, &mut task)
.map_err(|e| Error::UnrecoverableError(Box::new(e)))?;
}
}