{"action":"closed","number":849,"pull_request":{"url":"https://api.github.com/repos/twosigma/Cook/pulls/849","id":187957642,"html_url":"https://github.com/twosigma/Cook/pull/849","diff_url":"https://github.com/twosigma/Cook/pull/849.diff","patch_url":"https://github.com/twosigma/Cook/pull/849.patch","issue_url":"https://api.github.com/repos/twosigma/Cook/issues/849","number":849,"state":"closed","locked":false,"title":"Add estimated-completion-constraint","user":{"login":"pschorf","id":88803,"avatar_url":"https://avatars0.githubusercontent.com/u/88803?v=4","gravatar_id":"","url":"https://api.github.com/users/pschorf","html_url":"https://github.com/pschorf","followers_url":"https://api.github.com/users/pschorf/followers","following_url":"https://api.github.com/users/pschorf/following{/other_user}","gists_url":"https://api.github.com/users/pschorf/gists{/gist_id}","starred_url":"https://api.github.com/users/pschorf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pschorf/subscriptions","organizations_url":"https://api.github.com/users/pschorf/orgs","repos_url":"https://api.github.com/users/pschorf/repos","events_url":"https://api.github.com/users/pschorf/events{/privacy}","received_events_url":"https://api.github.com/users/pschorf/received_events","type":"User","site_admin":false},"body":"## Changes proposed in this PR\r\n- Adds support for a new \"estimated completion\" constraint\r\n\r\n## Why are we making these changes?\r\nSome long-running jobs are scheduled on cloud spot VMs which are expected to be short-lived, leading to the jobs losing work and being rescheduled on different VMs. This constraint uses the `expected-runtime` of the job as a baseline as well as a configured age for each host to determine whether the job is expected to run to completion on the host before scheduling.\r\n","created_at":"2018-05-14T21:34:48Z","updated_at":"2018-05-16T02:38:28Z","closed_at":"2018-05-16T02:38:28Z","merged_at":null,"merge_commit_sha":"c8b77a6a16a716800d6a3a7e849a141969beb504","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/twosigma/Cook/pulls/849/commits","review_comments_url":"https://api.github.com/repos/twosigma/Cook/pulls/849/comments","review_comment_url":"https://api.github.com/repos/twosigma/Cook/pulls/comments{/number}","comments_url":"https://api.github.com/repos/twosigma/Cook/issues/849/comments","statuses_url":"https://api.github.com/repos/twosigma/Cook/statuses/4d0ea0e86c177f22aad512bf121a354108a37b4d","head":{"label":"pschorf:agent-start-time","ref":"agent-start-time","sha":"4d0ea0e86c177f22aad512bf121a354108a37b4d","user":{"login":"pschorf","id":88803,"avatar_url":"https://avatars0.githubusercontent.com/u/88803?v=4","gravatar_id":"","url":"https://api.github.com/users/pschorf","html_url":"https://github.com/pschorf","followers_url":"https://api.github.com/users/pschorf/followers","following_url":"https://api.github.com/users/pschorf/following{/other_user}","gists_url":"https://api.github.com/users/pschorf/gists{/gist_id}","starred_url":"https://api.github.com/users/pschorf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pschorf/subscriptions","organizations_url":"https://api.github.com/users/pschorf/orgs","repos_url":"https://api.github.com/users/pschorf/repos","events_url":"https://api.github.com/users/pschorf/events{/privacy}","received_events_url":"https://api.github.com/users/pschorf/received_events","type":"User","site_admin":false},"repo":{"id":81490196,"name":"Cook","full_name":"pschorf/Cook","owner":{"login":"pschorf","id":88803,"avatar_url":"https://avatars0.githubusercontent.com/u/88803?v=4","gravatar_id":"","url":"https://api.github.com/users/pschorf","html_url":"https://github.com/pschorf","followers_url":"https://api.github.com/users/pschorf/followers","following_url":"https://api.github.com/users/pschorf/following{/other_user}","gists_url":"https://api.github.com/users/pschorf/gists{/gist_id}","starred_url":"https://api.github.com/users/pschorf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pschorf/subscriptions","organizations_url":"https://api.github.com/users/pschorf/orgs","repos_url":"https://api.github.com/users/pschorf/repos","events_url":"https://api.github.com/users/pschorf/events{/privacy}","received_events_url":"https://api.github.com/users/pschorf/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pschorf/Cook","description":"Fair job scheduler on Mesos for batch workloads and Spark","fork":true,"url":"https://api.github.com/repos/pschorf/Cook","forks_url":"https://api.github.com/repos/pschorf/Cook/forks","keys_url":"https://api.github.com/repos/pschorf/Cook/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pschorf/Cook/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pschorf/Cook/teams","hooks_url":"https://api.github.com/repos/pschorf/Cook/hooks","issue_events_url":"https://api.github.com/repos/pschorf/Cook/issues/events{/number}","events_url":"https://api.github.com/repos/pschorf/Cook/events","assignees_url":"https://api.github.com/repos/pschorf/Cook/assignees{/user}","branches_url":"https://api.github.com/repos/pschorf/Cook/branches{/branch}","tags_url":"https://api.github.com/repos/pschorf/Cook/tags","blobs_url":"https://api.github.com/repos/pschorf/Cook/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pschorf/Cook/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pschorf/Cook/git/refs{/sha}","trees_url":"https://api.github.com/repos/pschorf/Cook/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pschorf/Cook/statuses/{sha}","languages_url":"https://api.github.com/repos/pschorf/Cook/languages","stargazers_url":"https://api.github.com/repos/pschorf/Cook/stargazers","contributors_url":"https://api.github.com/repos/pschorf/Cook/contributors","subscribers_url":"https://api.github.com/repos/pschorf/Cook/subscribers","subscription_url":"https://api.github.com/repos/pschorf/Cook/subscription","commits_url":"https://api.github.com/repos/pschorf/Cook/commits{/sha}","git_commits_url":"https://api.github.com/repos/pschorf/Cook/git/commits{/sha}","comments_url":"https://api.github.com/repos/pschorf/Cook/comments{/number}","issue_comment_url":"https://api.github.com/repos/pschorf/Cook/issues/comments{/number}","contents_url":"https://api.github.com/repos/pschorf/Cook/contents/{+path}","compare_url":"https://api.github.com/repos/pschorf/Cook/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pschorf/Cook/merges","archive_url":"https://api.github.com/repos/pschorf/Cook/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pschorf/Cook/downloads","issues_url":"https://api.github.com/repos/pschorf/Cook/issues{/number}","pulls_url":"https://api.github.com/repos/pschorf/Cook/pulls{/number}","milestones_url":"https://api.github.com/repos/pschorf/Cook/milestones{/number}","notifications_url":"https://api.github.com/repos/pschorf/Cook/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pschorf/Cook/labels{/name}","releases_url":"https://api.github.com/repos/pschorf/Cook/releases{/id}","deployments_url":"https://api.github.com/repos/pschorf/Cook/deployments","created_at":"2017-02-09T20:07:17Z","updated_at":"2017-02-09T20:07:19Z","pushed_at":"2018-05-15T20:12:26Z","git_url":"git://github.com/pschorf/Cook.git","ssh_url":"git@github.com:pschorf/Cook.git","clone_url":"https://github.com/pschorf/Cook.git","svn_url":"https://github.com/pschorf/Cook","homepage":"","size":42274,"stargazers_count":0,"watchers_count":0,"language":"Clojure","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"twosigma:master","ref":"master","sha":"cde0fd45e4d3122da6551488b783542a74926476","user":{"login":"twosigma","id":4049181,"avatar_url":"https://avatars3.githubusercontent.com/u/4049181?v=4","gravatar_id":"","url":"https://api.github.com/users/twosigma","html_url":"https://github.com/twosigma","followers_url":"https://api.github.com/users/twosigma/followers","following_url":"https://api.github.com/users/twosigma/following{/other_user}","gists_url":"https://api.github.com/users/twosigma/gists{/gist_id}","starred_url":"https://api.github.com/users/twosigma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/twosigma/subscriptions","organizations_url":"https://api.github.com/users/twosigma/orgs","repos_url":"https://api.github.com/users/twosigma/repos","events_url":"https://api.github.com/users/twosigma/events{/privacy}","received_events_url":"https://api.github.com/users/twosigma/received_events","type":"Organization","site_admin":false},"repo":{"id":42325066,"name":"Cook","full_name":"twosigma/Cook","owner":{"login":"twosigma","id":4049181,"avatar_url":"https://avatars3.githubusercontent.com/u/4049181?v=4","gravatar_id":"","url":"https://api.github.com/users/twosigma","html_url":"https://github.com/twosigma","followers_url":"https://api.github.com/users/twosigma/followers","following_url":"https://api.github.com/users/twosigma/following{/other_user}","gists_url":"https://api.github.com/users/twosigma/gists{/gist_id}","starred_url":"https://api.github.com/users/twosigma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/twosigma/subscriptions","organizations_url":"https://api.github.com/users/twosigma/orgs","repos_url":"https://api.github.com/users/twosigma/repos","events_url":"https://api.github.com/users/twosigma/events{/privacy}","received_events_url":"https://api.github.com/users/twosigma/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/twosigma/Cook","description":"Fair job scheduler on Mesos for batch workloads and Spark","fork":false,"url":"https://api.github.com/repos/twosigma/Cook","forks_url":"https://api.github.com/repos/twosigma/Cook/forks","keys_url":"https://api.github.com/repos/twosigma/Cook/keys{/key_id}","collaborators_url":"https://api.github.com/repos/twosigma/Cook/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/twosigma/Cook/teams","hooks_url":"https://api.github.com/repos/twosigma/Cook/hooks","issue_events_url":"https://api.github.com/repos/twosigma/Cook/issues/events{/number}","events_url":"https://api.github.com/repos/twosigma/Cook/events","assignees_url":"https://api.github.com/repos/twosigma/Cook/assignees{/user}","branches_url":"https://api.github.com/repos/twosigma/Cook/branches{/branch}","tags_url":"https://api.github.com/repos/twosigma/Cook/tags","blobs_url":"https://api.github.com/repos/twosigma/Cook/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/twosigma/Cook/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/twosigma/Cook/git/refs{/sha}","trees_url":"https://api.github.com/repos/twosigma/Cook/git/trees{/sha}","statuses_url":"https://api.github.com/repos/twosigma/Cook/statuses/{sha}","languages_url":"https://api.github.com/repos/twosigma/Cook/languages","stargazers_url":"https://api.github.com/repos/twosigma/Cook/stargazers","contributors_url":"https://api.github.com/repos/twosigma/Cook/contributors","subscribers_url":"https://api.github.com/repos/twosigma/Cook/subscribers","subscription_url":"https://api.github.com/repos/twosigma/Cook/subscription","commits_url":"https://api.github.com/repos/twosigma/Cook/commits{/sha}","git_commits_url":"https://api.github.com/repos/twosigma/Cook/git/commits{/sha}","comments_url":"https://api.github.com/repos/twosigma/Cook/comments{/number}","issue_comment_url":"https://api.github.com/repos/twosigma/Cook/issues/comments{/number}","contents_url":"https://api.github.com/repos/twosigma/Cook/contents/{+path}","compare_url":"https://api.github.com/repos/twosigma/Cook/compare/{base}...{head}","merges_url":"https://api.github.com/repos/twosigma/Cook/merges","archive_url":"https://api.github.com/repos/twosigma/Cook/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/twosigma/Cook/downloads","issues_url":"https://api.github.com/repos/twosigma/Cook/issues{/number}","pulls_url":"https://api.github.com/repos/twosigma/Cook/pulls{/number}","milestones_url":"https://api.github.com/repos/twosigma/Cook/milestones{/number}","notifications_url":"https://api.github.com/repos/twosigma/Cook/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/twosigma/Cook/labels{/name}","releases_url":"https://api.github.com/repos/twosigma/Cook/releases{/id}","deployments_url":"https://api.github.com/repos/twosigma/Cook/deployments","created_at":"2015-09-11T18:20:08Z","updated_at":"2018-05-16T02:22:23Z","pushed_at":"2018-05-16T02:28:42Z","git_url":"git://github.com/twosigma/Cook.git","ssh_url":"git@github.com:twosigma/Cook.git","clone_url":"https://github.com/twosigma/Cook.git","svn_url":"https://github.com/twosigma/Cook","homepage":"","size":42265,"stargazers_count":257,"watchers_count":257,"language":"Clojure","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":46,"mirror_url":null,"archived":false,"open_issues_count":97,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":46,"open_issues":97,"watchers":257,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/twosigma/Cook/pulls/849"},"html":{"href":"https://github.com/twosigma/Cook/pull/849"},"issue":{"href":"https://api.github.com/repos/twosigma/Cook/issues/849"},"comments":{"href":"https://api.github.com/repos/twosigma/Cook/issues/849/comments"},"review_comments":{"href":"https://api.github.com/repos/twosigma/Cook/pulls/849/comments"},"review_comment":{"href":"https://api.github.com/repos/twosigma/Cook/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/twosigma/Cook/pulls/849/commits"},"statuses":{"href":"https://api.github.com/repos/twosigma/Cook/statuses/4d0ea0e86c177f22aad512bf121a354108a37b4d"}},"author_association":"CONTRIBUTOR","merged":false,"mergeable":true,"rebaseable":true,"mergeable_state":"unstable","merged_by":null,"comments":3,"review_comments":12,"maintainer_can_modify":false,"commits":3,"additions":129,"deletions":18,"changed_files":5}}
{"actor":{"display_login":"DaoWen"}}