mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-02-02 08:33:28 +01:00
Scheduler must not reverse the order of the fetched tasks
This commit is contained in:
parent
0656df3a6d
commit
df721b2e9e
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user