Scheduler must not reverse the order of the fetched tasks

This commit is contained in:
Kerollmops 2022-06-01 17:16:15 +02:00
parent 0656df3a6d
commit df721b2e9e
No known key found for this signature in database
GPG Key ID: 92ADA4E935E71FA4
1 changed files with 0 additions and 2 deletions

View File

@ -346,8 +346,6 @@ impl Scheduler {
.fetch_unfinished_tasks(Some(self.next_fetched_task_id))
.await?
.into_iter()
// The tasks arrive in reverse order, and we need to insert them in order.
.rev()
.for_each(|t| {
self.next_fetched_task_id = t.id + 1;
self.register_task(t);