reuse the enqueued

This commit is contained in:
Tamo 2024-12-11 18:05:34 +01:00
parent c5536c37b5
commit 85577e70cd
No known key found for this signature in database
GPG Key ID: 20CD8020AFA88D69

View File

@ -695,7 +695,7 @@ impl IndexScheduler {
let (atomic, update_file_progress) =
AtomicUpdateFileStep::new(enqueued.len() as u32);
progress.update_progress(update_file_progress);
for task_id in self.get_status(&rtxn, Status::Enqueued)? {
for task_id in enqueued {
let task = self.get_task(&rtxn, task_id)?.ok_or(Error::CorruptedTaskQueue)?;
if let Some(content_uuid) = task.content_uuid() {
let src = self.file_store.get_update_path(content_uuid);