How Does Job Priority Work?
Posted: Fri Jun 09, 2023 9:38 am
I have been trying to figure out how priority works and cannot understand it.
We submit our jobs with a priority, and the docs say that renders with higher priority get tasks first, which makes sense. But the behaviour is very different.
In the following image I have two jobs in different branches. The branch priority is the same, and one has a job priority of 120, and the other 50.
The job with priority 120 may get rendered first. It may not. I cannot find any consistency here. But also, if I were to swap the priorities, then eject all tasks from the hosts, the order should be reversed, but it isn't. It just carries on as before.
I tried again with only two jobs rendering. One at priority 200 and the other at priority 1. I then reversed the priorities and ejected all tasks, and again this has no effect on the execution order.
I have come to the conclusion that I do not understand how job priority works. I've tried many experiments and I've never been able to have any control over the order in which tasks are executed.
We submit our jobs with a priority, and the docs say that renders with higher priority get tasks first, which makes sense. But the behaviour is very different.
In the following image I have two jobs in different branches. The branch priority is the same, and one has a job priority of 120, and the other 50.
The job with priority 120 may get rendered first. It may not. I cannot find any consistency here. But also, if I were to swap the priorities, then eject all tasks from the hosts, the order should be reversed, but it isn't. It just carries on as before.
I tried again with only two jobs rendering. One at priority 200 and the other at priority 1. I then reversed the priorities and ejected all tasks, and again this has no effect on the execution order.
I have come to the conclusion that I do not understand how job priority works. I've tried many experiments and I've never been able to have any control over the order in which tasks are executed.