mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-07-25 07:41:00 +00:00
Scheduler must not reverse the order of the fetched tasks
This commit is contained in:
@ -346,8 +346,6 @@ impl Scheduler {
|
|||||||
.fetch_unfinished_tasks(Some(self.next_fetched_task_id))
|
.fetch_unfinished_tasks(Some(self.next_fetched_task_id))
|
||||||
.await?
|
.await?
|
||||||
.into_iter()
|
.into_iter()
|
||||||
// The tasks arrive in reverse order, and we need to insert them in order.
|
|
||||||
.rev()
|
|
||||||
.for_each(|t| {
|
.for_each(|t| {
|
||||||
self.next_fetched_task_id = t.id + 1;
|
self.next_fetched_task_id = t.id + 1;
|
||||||
self.register_task(t);
|
self.register_task(t);
|
||||||
|
Reference in New Issue
Block a user