Fix expect message

This commit is contained in:
Mubelotix 2025-07-01 14:39:52 +02:00
parent d439a3cb9d
commit 074d509d92
No known key found for this signature in database
GPG key ID: 0406DF6C3A69B942

View file

@ -510,7 +510,7 @@ impl IndexScheduler {
// 3. we batch the export. // 3. we batch the export.
let to_export = self.queue.tasks.get_kind(rtxn, Kind::Export)? & enqueued; let to_export = self.queue.tasks.get_kind(rtxn, Kind::Export)? & enqueued;
if !to_export.is_empty() { if !to_export.is_empty() {
let task_id = to_export.iter().next().expect("There must be only one export task"); let task_id = to_export.iter().next().expect("There must be at least one export task");
let mut task = self.queue.tasks.get_task(rtxn, task_id)?.unwrap(); let mut task = self.queue.tasks.get_task(rtxn, task_id)?.unwrap();
current_batch.processing([&mut task]); current_batch.processing([&mut task]);
current_batch.reason(BatchStopReason::TaskKindCannotBeBatched { kind: Kind::Export }); current_batch.reason(BatchStopReason::TaskKindCannotBeBatched { kind: Kind::Export });