mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 04:17:10 +02:00
Fix expect message
This commit is contained in:
parent
d439a3cb9d
commit
074d509d92
1 changed files with 1 additions and 1 deletions
|
@ -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 });
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue