Enable sorting of queue items based on a custom timestamp extracted from an annotation #4415
Open
2 of 3 tasks
Labels
kind/feature
Categorizes issue or PR as related to a new feature.
What would you like to be added:
Enable sorting of queue items based on a custom timestamp extracted from an annotation.
Why is this needed:
Queuing plain pods created by Tekton can be highly beneficial for sharing quotas and achieving more consistent scheduling (FIFO based on the pod's creation timestamp). A short demo on this topic can be found here.
The experience could be further improved by allowing pods in the queue to be sorted based on the creation timestamp of the Tekton PipelineRun they belong to.
This would prioritize pods associated with "older" pipelines, helping them complete first and reducing timeouts.
Completion requirements:
Kueue should be able to read a timestamp from an annotation set on the workload and use it for sorting workloads in the queue.
It should be possible to copy annotations from the Job to the Workload, similar to how labels can be copied.
Tekton should set the creation timestamp of the PipelineRun as an annotation on the pods belonging to that PipelineRun (this should be implemented in Tekton).
This enhancement requires the following artifacts:
The artifacts should be linked in subsequent comments.
The text was updated successfully, but these errors were encountered: