{"action":"created","issue":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/31809","repository_url":"https://api.github.com/repos/kubernetes/kubernetes","labels_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/31809/labels{/name}","comments_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/31809/comments","events_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/31809/events","html_url":"https://github.com/kubernetes/kubernetes/pull/31809","id":174365808,"number":31809,"title":"Priority queue","user":{"login":"astropuffin","id":7584665,"avatar_url":"https://avatars.githubusercontent.com/u/7584665?v=3","gravatar_id":"","url":"https://api.github.com/users/astropuffin","html_url":"https://github.com/astropuffin","followers_url":"https://api.github.com/users/astropuffin/followers","following_url":"https://api.github.com/users/astropuffin/following{/other_user}","gists_url":"https://api.github.com/users/astropuffin/gists{/gist_id}","starred_url":"https://api.github.com/users/astropuffin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/astropuffin/subscriptions","organizations_url":"https://api.github.com/users/astropuffin/orgs","repos_url":"https://api.github.com/users/astropuffin/repos","events_url":"https://api.github.com/users/astropuffin/events{/privacy}","received_events_url":"https://api.github.com/users/astropuffin/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/cla:%20yes","name":"cla: yes","color":"bfe5bf"},{"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/release-note-label-needed","name":"release-note-label-needed","color":"db5a64"},{"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/size/XXL","name":"size/XXL","color":"ee0000"}],"state":"open","locked":false,"assignee":{"login":"caesarxuchao","id":2823529,"avatar_url":"https://avatars.githubusercontent.com/u/2823529?v=3","gravatar_id":"","url":"https://api.github.com/users/caesarxuchao","html_url":"https://github.com/caesarxuchao","followers_url":"https://api.github.com/users/caesarxuchao/followers","following_url":"https://api.github.com/users/caesarxuchao/following{/other_user}","gists_url":"https://api.github.com/users/caesarxuchao/gists{/gist_id}","starred_url":"https://api.github.com/users/caesarxuchao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caesarxuchao/subscriptions","organizations_url":"https://api.github.com/users/caesarxuchao/orgs","repos_url":"https://api.github.com/users/caesarxuchao/repos","events_url":"https://api.github.com/users/caesarxuchao/events{/privacy}","received_events_url":"https://api.github.com/users/caesarxuchao/received_events","type":"User","site_admin":false},"assignees":[{"login":"caesarxuchao","id":2823529,"avatar_url":"https://avatars.githubusercontent.com/u/2823529?v=3","gravatar_id":"","url":"https://api.github.com/users/caesarxuchao","html_url":"https://github.com/caesarxuchao","followers_url":"https://api.github.com/users/caesarxuchao/followers","following_url":"https://api.github.com/users/caesarxuchao/following{/other_user}","gists_url":"https://api.github.com/users/caesarxuchao/gists{/gist_id}","starred_url":"https://api.github.com/users/caesarxuchao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caesarxuchao/subscriptions","organizations_url":"https://api.github.com/users/caesarxuchao/orgs","repos_url":"https://api.github.com/users/caesarxuchao/repos","events_url":"https://api.github.com/users/caesarxuchao/events{/privacy}","received_events_url":"https://api.github.com/users/caesarxuchao/received_events","type":"User","site_admin":false}],"milestone":null,"comments":7,"created_at":"2016-08-31T20:06:44Z","updated_at":"2016-08-31T20:09:14Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/kubernetes/kubernetes/pulls/31809","html_url":"https://github.com/kubernetes/kubernetes/pull/31809","diff_url":"https://github.com/kubernetes/kubernetes/pull/31809.diff","patch_url":"https://github.com/kubernetes/kubernetes/pull/31809.patch"},"body":"DONOTMERGE\r\n\r\n**What this PR does / why we need it**:\r\nTo address https://github.com/kubernetes/kubernetes/issues/28928 . In short, I need to implement a priority queue for Pods. How the priority of the pod itself is calculated is business logic, and in general outside of the scope of this PR. However, to give an idea of the requirement, the priority will take into account how long the pod has been pending, the expected duration of the job, and the value of the job itself (in dollars). Thus, it needs to be recalculated frequently.\r\n\r\n**Which issue this PR fixes** *(optional, in `fixes #<issue number>(, #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #28928\r\n\r\n**Special notes for your reviewer**:\r\nDo not merge this PR. It is merely a sample implementation and is in no way viable for production. See the linked issue above for discussion.\n\n<!-- Reviewable:start -->\n---\nThis change is [<img src=\"https://reviewable.kubernetes.io/review_button.svg\" height=\"34\" align=\"absmiddle\" alt=\"Reviewable\"/>](https://reviewable.kubernetes.io/reviews/kubernetes/kubernetes/31809)\n<!-- Reviewable:end -->\n"},"comment":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/comments/243884934","html_url":"https://github.com/kubernetes/kubernetes/pull/31809#issuecomment-243884934","issue_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/31809","id":243884934,"user":{"login":"k8s-bot","id":12551979,"avatar_url":"https://avatars.githubusercontent.com/u/12551979?v=3","gravatar_id":"","url":"https://api.github.com/users/k8s-bot","html_url":"https://github.com/k8s-bot","followers_url":"https://api.github.com/users/k8s-bot/followers","following_url":"https://api.github.com/users/k8s-bot/following{/other_user}","gists_url":"https://api.github.com/users/k8s-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/k8s-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/k8s-bot/subscriptions","organizations_url":"https://api.github.com/users/k8s-bot/orgs","repos_url":"https://api.github.com/users/k8s-bot/repos","events_url":"https://api.github.com/users/k8s-bot/events{/privacy}","received_events_url":"https://api.github.com/users/k8s-bot/received_events","type":"User","site_admin":false},"created_at":"2016-08-31T20:09:14Z","updated_at":"2016-08-31T20:09:14Z","body":"Can one of the admins verify that this patch is reasonable to test? If so, please reply \"ok to test\".\n(Note: \"add to whitelist\" is no longer supported. Please update configurations in [kubernetes/test-infra/jenkins/job-configs/kubernetes-jenkins-pull](https://github.com/kubernetes/test-infra/tree/master/jenkins/job-configs/kubernetes-jenkins-pull) instead.)\n\nThis message will repeat several times in short succession due to https://github.com/jenkinsci/ghprb-plugin/issues/292. Sorry."}}
{"actor":{"display_login":"k8s-bot"}}