diff --git a/pkg/scheduler/framework/session.go b/pkg/scheduler/framework/session.go index d4c66cc11..6783ad071 100644 --- a/pkg/scheduler/framework/session.go +++ b/pkg/scheduler/framework/session.go @@ -381,7 +381,12 @@ func (ssn *Session) JobOrderFn(l, r interface{}) bool { lv := l.(*api.JobInfo) rv := r.(*api.JobInfo) - return lv.UID < rv.UID + if lv.CreationTimestamp.Equal(&rv.CreationTimestamp) { + return lv.UID < rv.UID + } + + return lv.CreationTimestamp.Before(&rv.CreationTimestamp) + } func (ssn *Session) QueueOrderFn(l, r interface{}) bool {