volcano.sh/volcano@v1.9.0/docs/design/task-order.md (about) 1 # Task Priority within Job 2 3 ## Introduction 4 5 When a workload is presented to kube-batch in the form of jobs or tasks, 6 kube-batch prioritizes those job/tasks, so job/task with high priority is 7 handled first. In this doc, we will look into how Tasks within job are prioritized. 8 9 ## Implementation 10 11 Task priority in kube-batch is done by using either of following data 12 13 1. Task's Priority given in TaskSpec(i.e. PodSpec as defined in the YAML) 14 2. Task's Creation time 15 3. Task's UID 16 17  18 19 If priority plugin in kube-batch is loaded, then priority is decided using 20 task's priority that will be provided in TaskSpec. 21 Else it checks for creationTime of tasks. Depending on which task has been created first, 22 that task will be given high priority. If creationTime is also same, 23 then UID is compared and then priority is decided.