Open pavdwest opened 1 year ago
This would essentially only be a matter of which queue to pick from first, not which task to process, right?
So if your worker is configured to max_jobs=10
jobs and you have 100 jobs in each queue, it will pick 10 jobs from the priority queue 10 times before moving on to the next queue?
If there's 7 tasks in the priority queue and 10 in the next queue, it would pick 7 from the priority queue and 3 from the next queue?
Overview
Are there any plans to support task priorities in the future?
Common use cases are prioritisation via queues with different priorities or directly at task enqueue time. I've also seen prioritisation via Task definition which is a bit too rigid in my opinion and can easily be achieved by other means if either of the first two options are available.
Note that the assumption here is that the tasks are processed by a single group of homogeneous workers (as opposed to e.g. multiple groups each processing specific queues).
Queue Priorities
e.g.
Task Priorities (at enqueue time)
e.g.
Expectation
The expectation is that the tasks will complete in the order t3, t2, t1 for both cases.