{"action":"created","issue":{"url":"https://api.github.com/repos/ray-project/ray/issues/3234","repository_url":"https://api.github.com/repos/ray-project/ray","labels_url":"https://api.github.com/repos/ray-project/ray/issues/3234/labels{/name}","comments_url":"https://api.github.com/repos/ray-project/ray/issues/3234/comments","events_url":"https://api.github.com/repos/ray-project/ray/issues/3234/events","html_url":"https://github.com/ray-project/ray/pull/3234","id":377240551,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI4MjMzNTI2","number":3234,"title":"Speed up task dispatch.","user":{"login":"istoica","id":1149505,"node_id":"MDQ6VXNlcjExNDk1MDU=","avatar_url":"https://avatars1.githubusercontent.com/u/1149505?v=4","gravatar_id":"","url":"https://api.github.com/users/istoica","html_url":"https://github.com/istoica","followers_url":"https://api.github.com/users/istoica/followers","following_url":"https://api.github.com/users/istoica/following{/other_user}","gists_url":"https://api.github.com/users/istoica/gists{/gist_id}","starred_url":"https://api.github.com/users/istoica/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/istoica/subscriptions","organizations_url":"https://api.github.com/users/istoica/orgs","repos_url":"https://api.github.com/users/istoica/repos","events_url":"https://api.github.com/users/istoica/events{/privacy}","received_events_url":"https://api.github.com/users/istoica/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2018-11-05T03:46:34Z","updated_at":"2018-11-08T18:15:07Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/ray-project/ray/pulls/3234","html_url":"https://github.com/ray-project/ray/pull/3234","diff_url":"https://github.com/ray-project/ray/pull/3234.diff","patch_url":"https://github.com/ray-project/ray/pull/3234.patch"},"body":"<!--\r\nThank you for your contribution!\r\n\r\nPlease review https://github.com/ray-project/ray/blob/master/CONTRIBUTING.rst before opening a pull request.\r\n-->\r\n\r\n## What do these changes do?\r\n\r\n<!-- Please give a short brief about these changes. -->\r\n\r\nDispatchTask() is called every time a new task is added to the ready queue or new resources become available on the local node, e.g., when an existing task finishes. If we know for sure that the only change to the ready queue since the last time DispatchTask() was called is a new task (**new_task_ready**) being added to the ready queue, we pass this task to DispatchTasks(). In this case DispatchTasks() can only look at the new task and avoid going through the rest of the tasks in the ready queue since they are guaranteed not to be feasible.  Otherwise, we set new_ready_task to nullptr, case in which DispatchTask()\r\ngo over all tasks in the ready queue.\r\n\r\n\r\n## Related issue number\r\n\r\n<!-- Are there any issues opened that will be resolved by merging this change? -->\r\n\r\nAlleviates issue https://github.com/ray-project/ray/issues/3194"},"comment":{"url":"https://api.github.com/repos/ray-project/ray/issues/comments/437101793","html_url":"https://github.com/ray-project/ray/pull/3234#issuecomment-437101793","issue_url":"https://api.github.com/repos/ray-project/ray/issues/3234","id":437101793,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNzEwMTc5Mw==","user":{"login":"AmplabJenkins","id":4031291,"node_id":"MDQ6VXNlcjQwMzEyOTE=","avatar_url":"https://avatars3.githubusercontent.com/u/4031291?v=4","gravatar_id":"","url":"https://api.github.com/users/AmplabJenkins","html_url":"https://github.com/AmplabJenkins","followers_url":"https://api.github.com/users/AmplabJenkins/followers","following_url":"https://api.github.com/users/AmplabJenkins/following{/other_user}","gists_url":"https://api.github.com/users/AmplabJenkins/gists{/gist_id}","starred_url":"https://api.github.com/users/AmplabJenkins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AmplabJenkins/subscriptions","organizations_url":"https://api.github.com/users/AmplabJenkins/orgs","repos_url":"https://api.github.com/users/AmplabJenkins/repos","events_url":"https://api.github.com/users/AmplabJenkins/events{/privacy}","received_events_url":"https://api.github.com/users/AmplabJenkins/received_events","type":"User","site_admin":false},"created_at":"2018-11-08T18:15:07Z","updated_at":"2018-11-08T18:15:07Z","author_association":"COLLABORATOR","body":"Test PASSed.\nRefer to this link for build results (access rights to CI server needed): \nhttps://amplab.cs.berkeley.edu/jenkins//job/Ray-PRB/9217/\nTest PASSed."}}
{"actor":{"display_login":"AmplabJenkins"}}