-
Notifications
You must be signed in to change notification settings - Fork 264
Order gang scheduled jobs based on time of arrival #464
Order gang scheduled jobs based on time of arrival #464
Conversation
Thanks for your pull request. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please follow instructions at https://git.k8s.io/community/CLA.md#the-contributor-license-agreement to sign the CLA. It may take a couple minutes for the CLA signature to be fully registered; after that, please reply here with a new comment and we'll verify. Thanks.
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
I am a member of the CNCF Intel Corporation group. My email is [email protected] |
Travis tests have failedHey @adam-marek, 1st Buildmake verify
TravisBuddy Request Identifier: 50fc6850-de27-11e8-b084-61188e6c7303 |
pkg/scheduler/plugins/gang/gang.go
Outdated
@@ -120,7 +120,11 @@ func (gp *gangPlugin) OnSessionOpen(ssn *framework.Session) { | |||
} | |||
|
|||
if !lReady && !rReady { | |||
if lv.UID < rv.UID { | |||
if lv.PodGroup.GetCreationTimestamp().Time.Equal(rv.PodGroup.GetCreationTimestamp().Time) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hm... we need to add a new field into JobInfo, the creation-timestamp is from PodGroup
or PDB
. And we will check jobInfo's creation time here. We need to support PDB as tf-operator is using it, we will remove it at least after 0.4 release.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Something along these lines ? (3f0dfd8)
Hey @adam-marek, TravisCI finished with status TravisBuddy Request Identifier: 5954b640-e08b-11e8-90db-29214a2b47d8 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM overall! let’s get it merged when CI is happy :)
please sign cla |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: adam-marek, k82cn The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
CLA should be signed now |
…ring Order gang scheduled jobs based on time of arrival
…ring Order gang scheduled jobs based on time of arrival
…ring Order gang scheduled jobs based on time of arrival
What this PR does / why we need it:
The ordering of equal priority gang scheduled jobs is currently based on the job's namespace/name which is unintuitive when multiple users schedule jobs competing for the same resources.
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #454
Special notes for your reviewer:
Release note: