{"action":"closed","number":27,"pull_request":{"url":"https://api.github.com/repos/blaze/distributed/pulls/27","id":52030558,"html_url":"https://github.com/blaze/distributed/pull/27","diff_url":"https://github.com/blaze/distributed/pull/27.diff","patch_url":"https://github.com/blaze/distributed/pull/27.patch","issue_url":"https://api.github.com/repos/blaze/distributed/issues/27","number":27,"state":"closed","locked":false,"title":"Refactor Scheduler to class","user":{"login":"mrocklin","id":306380,"avatar_url":"https://avatars.githubusercontent.com/u/306380?v=3","gravatar_id":"","url":"https://api.github.com/users/mrocklin","html_url":"https://github.com/mrocklin","followers_url":"https://api.github.com/users/mrocklin/followers","following_url":"https://api.github.com/users/mrocklin/following{/other_user}","gists_url":"https://api.github.com/users/mrocklin/gists{/gist_id}","starred_url":"https://api.github.com/users/mrocklin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrocklin/subscriptions","organizations_url":"https://api.github.com/users/mrocklin/orgs","repos_url":"https://api.github.com/users/mrocklin/repos","events_url":"https://api.github.com/users/mrocklin/events{/privacy}","received_events_url":"https://api.github.com/users/mrocklin/received_events","type":"User","site_admin":false},"body":"Previously the scheduler was a set of coroutines and queues that should be run together.  This was successfully done in the `Executor` class but rarely run separately.  \r\n\r\nNow we package up the coroutines, queues, and various state collections (`dask`, `dependents`, etc.) into a single `Scheduler` class.  We do this with an eye to run a scheduler on a separate machine from where the executor runs.  This is the first step in a few large features, notably running a client executor on a local laptop while having the scheduler on the cluster and also having multiple executors connected to the same scheduler.\r\n\r\nThe Scheduler and Executor connect by two queues (incoming and outgoing).  At the moment these queues are connected directly but in the future we might interpose a socket stream.","created_at":"2015-11-28T01:18:04Z","updated_at":"2015-11-28T03:45:48Z","closed_at":"2015-11-28T03:45:48Z","merged_at":"2015-11-28T03:45:48Z","merge_commit_sha":"4fb71e31f88b331704be4dbb4af520bffcaf7e25","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/blaze/distributed/pulls/27/commits","review_comments_url":"https://api.github.com/repos/blaze/distributed/pulls/27/comments","review_comment_url":"https://api.github.com/repos/blaze/distributed/pulls/comments{/number}","comments_url":"https://api.github.com/repos/blaze/distributed/issues/27/comments","statuses_url":"https://api.github.com/repos/blaze/distributed/statuses/83ebcf300221b690256de00ec488580eeaa47739","head":{"label":"mrocklin:scheduler","ref":"scheduler","sha":"83ebcf300221b690256de00ec488580eeaa47739","user":{"login":"mrocklin","id":306380,"avatar_url":"https://avatars.githubusercontent.com/u/306380?v=3","gravatar_id":"","url":"https://api.github.com/users/mrocklin","html_url":"https://github.com/mrocklin","followers_url":"https://api.github.com/users/mrocklin/followers","following_url":"https://api.github.com/users/mrocklin/following{/other_user}","gists_url":"https://api.github.com/users/mrocklin/gists{/gist_id}","starred_url":"https://api.github.com/users/mrocklin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrocklin/subscriptions","organizations_url":"https://api.github.com/users/mrocklin/orgs","repos_url":"https://api.github.com/users/mrocklin/repos","events_url":"https://api.github.com/users/mrocklin/events{/privacy}","received_events_url":"https://api.github.com/users/mrocklin/received_events","type":"User","site_admin":false},"repo":{"id":46569619,"name":"distributed","full_name":"mrocklin/distributed","owner":{"login":"mrocklin","id":306380,"avatar_url":"https://avatars.githubusercontent.com/u/306380?v=3","gravatar_id":"","url":"https://api.github.com/users/mrocklin","html_url":"https://github.com/mrocklin","followers_url":"https://api.github.com/users/mrocklin/followers","following_url":"https://api.github.com/users/mrocklin/following{/other_user}","gists_url":"https://api.github.com/users/mrocklin/gists{/gist_id}","starred_url":"https://api.github.com/users/mrocklin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrocklin/subscriptions","organizations_url":"https://api.github.com/users/mrocklin/orgs","repos_url":"https://api.github.com/users/mrocklin/repos","events_url":"https://api.github.com/users/mrocklin/events{/privacy}","received_events_url":"https://api.github.com/users/mrocklin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mrocklin/distributed","description":"","fork":true,"url":"https://api.github.com/repos/mrocklin/distributed","forks_url":"https://api.github.com/repos/mrocklin/distributed/forks","keys_url":"https://api.github.com/repos/mrocklin/distributed/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mrocklin/distributed/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mrocklin/distributed/teams","hooks_url":"https://api.github.com/repos/mrocklin/distributed/hooks","issue_events_url":"https://api.github.com/repos/mrocklin/distributed/issues/events{/number}","events_url":"https://api.github.com/repos/mrocklin/distributed/events","assignees_url":"https://api.github.com/repos/mrocklin/distributed/assignees{/user}","branches_url":"https://api.github.com/repos/mrocklin/distributed/branches{/branch}","tags_url":"https://api.github.com/repos/mrocklin/distributed/tags","blobs_url":"https://api.github.com/repos/mrocklin/distributed/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mrocklin/distributed/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mrocklin/distributed/git/refs{/sha}","trees_url":"https://api.github.com/repos/mrocklin/distributed/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mrocklin/distributed/statuses/{sha}","languages_url":"https://api.github.com/repos/mrocklin/distributed/languages","stargazers_url":"https://api.github.com/repos/mrocklin/distributed/stargazers","contributors_url":"https://api.github.com/repos/mrocklin/distributed/contributors","subscribers_url":"https://api.github.com/repos/mrocklin/distributed/subscribers","subscription_url":"https://api.github.com/repos/mrocklin/distributed/subscription","commits_url":"https://api.github.com/repos/mrocklin/distributed/commits{/sha}","git_commits_url":"https://api.github.com/repos/mrocklin/distributed/git/commits{/sha}","comments_url":"https://api.github.com/repos/mrocklin/distributed/comments{/number}","issue_comment_url":"https://api.github.com/repos/mrocklin/distributed/issues/comments{/number}","contents_url":"https://api.github.com/repos/mrocklin/distributed/contents/{+path}","compare_url":"https://api.github.com/repos/mrocklin/distributed/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mrocklin/distributed/merges","archive_url":"https://api.github.com/repos/mrocklin/distributed/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mrocklin/distributed/downloads","issues_url":"https://api.github.com/repos/mrocklin/distributed/issues{/number}","pulls_url":"https://api.github.com/repos/mrocklin/distributed/pulls{/number}","milestones_url":"https://api.github.com/repos/mrocklin/distributed/milestones{/number}","notifications_url":"https://api.github.com/repos/mrocklin/distributed/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mrocklin/distributed/labels{/name}","releases_url":"https://api.github.com/repos/mrocklin/distributed/releases{/id}","created_at":"2015-11-20T15:20:38Z","updated_at":"2015-11-21T22:57:34Z","pushed_at":"2015-11-28T01:50:26Z","git_url":"git://github.com/mrocklin/distributed.git","ssh_url":"git@github.com:mrocklin/distributed.git","clone_url":"https://github.com/mrocklin/distributed.git","svn_url":"https://github.com/mrocklin/distributed","homepage":null,"size":849,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":1,"default_branch":"master"}},"base":{"label":"blaze:master","ref":"master","sha":"0a47c0e4dc61bd33d6dc9281e65e353533ae80e0","user":{"login":"blaze","id":12833921,"avatar_url":"https://avatars.githubusercontent.com/u/12833921?v=3","gravatar_id":"","url":"https://api.github.com/users/blaze","html_url":"https://github.com/blaze","followers_url":"https://api.github.com/users/blaze/followers","following_url":"https://api.github.com/users/blaze/following{/other_user}","gists_url":"https://api.github.com/users/blaze/gists{/gist_id}","starred_url":"https://api.github.com/users/blaze/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blaze/subscriptions","organizations_url":"https://api.github.com/users/blaze/orgs","repos_url":"https://api.github.com/users/blaze/repos","events_url":"https://api.github.com/users/blaze/events{/privacy}","received_events_url":"https://api.github.com/users/blaze/received_events","type":"Organization","site_admin":false},"repo":{"id":42408083,"name":"distributed","full_name":"blaze/distributed","owner":{"login":"blaze","id":12833921,"avatar_url":"https://avatars.githubusercontent.com/u/12833921?v=3","gravatar_id":"","url":"https://api.github.com/users/blaze","html_url":"https://github.com/blaze","followers_url":"https://api.github.com/users/blaze/followers","following_url":"https://api.github.com/users/blaze/following{/other_user}","gists_url":"https://api.github.com/users/blaze/gists{/gist_id}","starred_url":"https://api.github.com/users/blaze/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blaze/subscriptions","organizations_url":"https://api.github.com/users/blaze/orgs","repos_url":"https://api.github.com/users/blaze/repos","events_url":"https://api.github.com/users/blaze/events{/privacy}","received_events_url":"https://api.github.com/users/blaze/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/blaze/distributed","description":"","fork":false,"url":"https://api.github.com/repos/blaze/distributed","forks_url":"https://api.github.com/repos/blaze/distributed/forks","keys_url":"https://api.github.com/repos/blaze/distributed/keys{/key_id}","collaborators_url":"https://api.github.com/repos/blaze/distributed/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/blaze/distributed/teams","hooks_url":"https://api.github.com/repos/blaze/distributed/hooks","issue_events_url":"https://api.github.com/repos/blaze/distributed/issues/events{/number}","events_url":"https://api.github.com/repos/blaze/distributed/events","assignees_url":"https://api.github.com/repos/blaze/distributed/assignees{/user}","branches_url":"https://api.github.com/repos/blaze/distributed/branches{/branch}","tags_url":"https://api.github.com/repos/blaze/distributed/tags","blobs_url":"https://api.github.com/repos/blaze/distributed/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/blaze/distributed/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/blaze/distributed/git/refs{/sha}","trees_url":"https://api.github.com/repos/blaze/distributed/git/trees{/sha}","statuses_url":"https://api.github.com/repos/blaze/distributed/statuses/{sha}","languages_url":"https://api.github.com/repos/blaze/distributed/languages","stargazers_url":"https://api.github.com/repos/blaze/distributed/stargazers","contributors_url":"https://api.github.com/repos/blaze/distributed/contributors","subscribers_url":"https://api.github.com/repos/blaze/distributed/subscribers","subscription_url":"https://api.github.com/repos/blaze/distributed/subscription","commits_url":"https://api.github.com/repos/blaze/distributed/commits{/sha}","git_commits_url":"https://api.github.com/repos/blaze/distributed/git/commits{/sha}","comments_url":"https://api.github.com/repos/blaze/distributed/comments{/number}","issue_comment_url":"https://api.github.com/repos/blaze/distributed/issues/comments{/number}","contents_url":"https://api.github.com/repos/blaze/distributed/contents/{+path}","compare_url":"https://api.github.com/repos/blaze/distributed/compare/{base}...{head}","merges_url":"https://api.github.com/repos/blaze/distributed/merges","archive_url":"https://api.github.com/repos/blaze/distributed/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/blaze/distributed/downloads","issues_url":"https://api.github.com/repos/blaze/distributed/issues{/number}","pulls_url":"https://api.github.com/repos/blaze/distributed/pulls{/number}","milestones_url":"https://api.github.com/repos/blaze/distributed/milestones{/number}","notifications_url":"https://api.github.com/repos/blaze/distributed/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/blaze/distributed/labels{/name}","releases_url":"https://api.github.com/repos/blaze/distributed/releases{/id}","created_at":"2015-09-13T18:42:29Z","updated_at":"2015-11-21T23:00:46Z","pushed_at":"2015-11-28T03:45:48Z","git_url":"git://github.com/blaze/distributed.git","ssh_url":"git@github.com:blaze/distributed.git","clone_url":"https://github.com/blaze/distributed.git","svn_url":"https://github.com/blaze/distributed","homepage":null,"size":833,"stargazers_count":19,"watchers_count":19,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":9,"forks":6,"open_issues":9,"watchers":19,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/blaze/distributed/pulls/27"},"html":{"href":"https://github.com/blaze/distributed/pull/27"},"issue":{"href":"https://api.github.com/repos/blaze/distributed/issues/27"},"comments":{"href":"https://api.github.com/repos/blaze/distributed/issues/27/comments"},"review_comments":{"href":"https://api.github.com/repos/blaze/distributed/pulls/27/comments"},"review_comment":{"href":"https://api.github.com/repos/blaze/distributed/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/blaze/distributed/pulls/27/commits"},"statuses":{"href":"https://api.github.com/repos/blaze/distributed/statuses/83ebcf300221b690256de00ec488580eeaa47739"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"mrocklin","id":306380,"avatar_url":"https://avatars.githubusercontent.com/u/306380?v=3","gravatar_id":"","url":"https://api.github.com/users/mrocklin","html_url":"https://github.com/mrocklin","followers_url":"https://api.github.com/users/mrocklin/followers","following_url":"https://api.github.com/users/mrocklin/following{/other_user}","gists_url":"https://api.github.com/users/mrocklin/gists{/gist_id}","starred_url":"https://api.github.com/users/mrocklin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrocklin/subscriptions","organizations_url":"https://api.github.com/users/mrocklin/orgs","repos_url":"https://api.github.com/users/mrocklin/repos","events_url":"https://api.github.com/users/mrocklin/events{/privacy}","received_events_url":"https://api.github.com/users/mrocklin/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":12,"additions":567,"deletions":758,"changed_files":11}}