Skip to content

Commit

Permalink
Merge pull request #1000 from openzim/scheduling_prio_rw
Browse files Browse the repository at this point in the history
Add missing property to sort requested tasks in scheduling
  • Loading branch information
benoit74 authored Jul 22, 2024
2 parents 9ad012b + 82efb1f commit 9a195ba
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions dispatcher/backend/src/utils/scheduling.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,7 @@ def get_document(task: dbm.RequestedTask):
"priority": task.priority,
"worker": task.worker.name if task.worker else None,
"duration": get_duration_for_with_schedule(task.schedule, worker.name),
"updated_at": task.updated_at,
}

stmt = sa.select(dbm.RequestedTask)
Expand Down

0 comments on commit 9a195ba

Please sign in to comment.