{"action":"closed","number":1,"pull_request":{"url":"https://api.github.com/repos/scrummyin/bee_farmer/pulls/1","id":39303841,"html_url":"https://github.com/scrummyin/bee_farmer/pull/1","diff_url":"https://github.com/scrummyin/bee_farmer/pull/1.diff","patch_url":"https://github.com/scrummyin/bee_farmer/pull/1.patch","issue_url":"https://api.github.com/repos/scrummyin/bee_farmer/issues/1","number":1,"state":"closed","locked":false,"title":"Shared client","user":{"login":"chriseldredge","id":826092,"avatar_url":"https://avatars.githubusercontent.com/u/826092?v=3","gravatar_id":"","url":"https://api.github.com/users/chriseldredge","html_url":"https://github.com/chriseldredge","followers_url":"https://api.github.com/users/chriseldredge/followers","following_url":"https://api.github.com/users/chriseldredge/following{/other_user}","gists_url":"https://api.github.com/users/chriseldredge/gists{/gist_id}","starred_url":"https://api.github.com/users/chriseldredge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chriseldredge/subscriptions","organizations_url":"https://api.github.com/users/chriseldredge/orgs","repos_url":"https://api.github.com/users/chriseldredge/repos","events_url":"https://api.github.com/users/chriseldredge/events{/privacy}","received_events_url":"https://api.github.com/users/chriseldredge/received_events","type":"User","site_admin":false},"body":"This PR upgrades kazoo to latest (2.2.1) and initializes a shared instance of KazooClient at startup to avoid unnecessary overhead on each request while establishing a new session to ZooKeeper.\r\n\r\nAlso fixes resource leak where clients are not closed when the request has completed, resulting in the app needing to be restarted.\r\n","created_at":"2015-07-06T19:49:41Z","updated_at":"2015-07-06T20:36:57Z","closed_at":"2015-07-06T20:36:57Z","merged_at":"2015-07-06T20:36:57Z","merge_commit_sha":"b318fe6ef3fc9f73d870d3554683fafb0ec7eea6","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/scrummyin/bee_farmer/pulls/1/commits","review_comments_url":"https://api.github.com/repos/scrummyin/bee_farmer/pulls/1/comments","review_comment_url":"https://api.github.com/repos/scrummyin/bee_farmer/pulls/comments{/number}","comments_url":"https://api.github.com/repos/scrummyin/bee_farmer/issues/1/comments","statuses_url":"https://api.github.com/repos/scrummyin/bee_farmer/statuses/8a0c0eefcc7a370d56d155baa23c02aae58dc6cd","head":{"label":"chriseldredge:shared-client","ref":"shared-client","sha":"8a0c0eefcc7a370d56d155baa23c02aae58dc6cd","user":{"login":"chriseldredge","id":826092,"avatar_url":"https://avatars.githubusercontent.com/u/826092?v=3","gravatar_id":"","url":"https://api.github.com/users/chriseldredge","html_url":"https://github.com/chriseldredge","followers_url":"https://api.github.com/users/chriseldredge/followers","following_url":"https://api.github.com/users/chriseldredge/following{/other_user}","gists_url":"https://api.github.com/users/chriseldredge/gists{/gist_id}","starred_url":"https://api.github.com/users/chriseldredge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chriseldredge/subscriptions","organizations_url":"https://api.github.com/users/chriseldredge/orgs","repos_url":"https://api.github.com/users/chriseldredge/repos","events_url":"https://api.github.com/users/chriseldredge/events{/privacy}","received_events_url":"https://api.github.com/users/chriseldredge/received_events","type":"User","site_admin":false},"repo":{"id":38641761,"name":"bee_farmer","full_name":"chriseldredge/bee_farmer","owner":{"login":"chriseldredge","id":826092,"avatar_url":"https://avatars.githubusercontent.com/u/826092?v=3","gravatar_id":"","url":"https://api.github.com/users/chriseldredge","html_url":"https://github.com/chriseldredge","followers_url":"https://api.github.com/users/chriseldredge/followers","following_url":"https://api.github.com/users/chriseldredge/following{/other_user}","gists_url":"https://api.github.com/users/chriseldredge/gists{/gist_id}","starred_url":"https://api.github.com/users/chriseldredge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chriseldredge/subscriptions","organizations_url":"https://api.github.com/users/chriseldredge/orgs","repos_url":"https://api.github.com/users/chriseldredge/repos","events_url":"https://api.github.com/users/chriseldredge/events{/privacy}","received_events_url":"https://api.github.com/users/chriseldredge/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/chriseldredge/bee_farmer","description":"","fork":true,"url":"https://api.github.com/repos/chriseldredge/bee_farmer","forks_url":"https://api.github.com/repos/chriseldredge/bee_farmer/forks","keys_url":"https://api.github.com/repos/chriseldredge/bee_farmer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/chriseldredge/bee_farmer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/chriseldredge/bee_farmer/teams","hooks_url":"https://api.github.com/repos/chriseldredge/bee_farmer/hooks","issue_events_url":"https://api.github.com/repos/chriseldredge/bee_farmer/issues/events{/number}","events_url":"https://api.github.com/repos/chriseldredge/bee_farmer/events","assignees_url":"https://api.github.com/repos/chriseldredge/bee_farmer/assignees{/user}","branches_url":"https://api.github.com/repos/chriseldredge/bee_farmer/branches{/branch}","tags_url":"https://api.github.com/repos/chriseldredge/bee_farmer/tags","blobs_url":"https://api.github.com/repos/chriseldredge/bee_farmer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/chriseldredge/bee_farmer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/chriseldredge/bee_farmer/git/refs{/sha}","trees_url":"https://api.github.com/repos/chriseldredge/bee_farmer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/chriseldredge/bee_farmer/statuses/{sha}","languages_url":"https://api.github.com/repos/chriseldredge/bee_farmer/languages","stargazers_url":"https://api.github.com/repos/chriseldredge/bee_farmer/stargazers","contributors_url":"https://api.github.com/repos/chriseldredge/bee_farmer/contributors","subscribers_url":"https://api.github.com/repos/chriseldredge/bee_farmer/subscribers","subscription_url":"https://api.github.com/repos/chriseldredge/bee_farmer/subscription","commits_url":"https://api.github.com/repos/chriseldredge/bee_farmer/commits{/sha}","git_commits_url":"https://api.github.com/repos/chriseldredge/bee_farmer/git/commits{/sha}","comments_url":"https://api.github.com/repos/chriseldredge/bee_farmer/comments{/number}","issue_comment_url":"https://api.github.com/repos/chriseldredge/bee_farmer/issues/comments{/number}","contents_url":"https://api.github.com/repos/chriseldredge/bee_farmer/contents/{+path}","compare_url":"https://api.github.com/repos/chriseldredge/bee_farmer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/chriseldredge/bee_farmer/merges","archive_url":"https://api.github.com/repos/chriseldredge/bee_farmer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/chriseldredge/bee_farmer/downloads","issues_url":"https://api.github.com/repos/chriseldredge/bee_farmer/issues{/number}","pulls_url":"https://api.github.com/repos/chriseldredge/bee_farmer/pulls{/number}","milestones_url":"https://api.github.com/repos/chriseldredge/bee_farmer/milestones{/number}","notifications_url":"https://api.github.com/repos/chriseldredge/bee_farmer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/chriseldredge/bee_farmer/labels{/name}","releases_url":"https://api.github.com/repos/chriseldredge/bee_farmer/releases{/id}","created_at":"2015-07-06T19:41:35Z","updated_at":"2015-07-06T19:41:35Z","pushed_at":"2015-07-06T19:48:03Z","git_url":"git://github.com/chriseldredge/bee_farmer.git","ssh_url":"git@github.com:chriseldredge/bee_farmer.git","clone_url":"https://github.com/chriseldredge/bee_farmer.git","svn_url":"https://github.com/chriseldredge/bee_farmer","homepage":null,"size":88,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"scrummyin:master","ref":"master","sha":"2afabfbbaff10508658ac32864b1f42d1d41e5b9","user":{"login":"scrummyin","id":158252,"avatar_url":"https://avatars.githubusercontent.com/u/158252?v=3","gravatar_id":"","url":"https://api.github.com/users/scrummyin","html_url":"https://github.com/scrummyin","followers_url":"https://api.github.com/users/scrummyin/followers","following_url":"https://api.github.com/users/scrummyin/following{/other_user}","gists_url":"https://api.github.com/users/scrummyin/gists{/gist_id}","starred_url":"https://api.github.com/users/scrummyin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scrummyin/subscriptions","organizations_url":"https://api.github.com/users/scrummyin/orgs","repos_url":"https://api.github.com/users/scrummyin/repos","events_url":"https://api.github.com/users/scrummyin/events{/privacy}","received_events_url":"https://api.github.com/users/scrummyin/received_events","type":"User","site_admin":false},"repo":{"id":24355423,"name":"bee_farmer","full_name":"scrummyin/bee_farmer","owner":{"login":"scrummyin","id":158252,"avatar_url":"https://avatars.githubusercontent.com/u/158252?v=3","gravatar_id":"","url":"https://api.github.com/users/scrummyin","html_url":"https://github.com/scrummyin","followers_url":"https://api.github.com/users/scrummyin/followers","following_url":"https://api.github.com/users/scrummyin/following{/other_user}","gists_url":"https://api.github.com/users/scrummyin/gists{/gist_id}","starred_url":"https://api.github.com/users/scrummyin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scrummyin/subscriptions","organizations_url":"https://api.github.com/users/scrummyin/orgs","repos_url":"https://api.github.com/users/scrummyin/repos","events_url":"https://api.github.com/users/scrummyin/events{/privacy}","received_events_url":"https://api.github.com/users/scrummyin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/scrummyin/bee_farmer","description":"","fork":false,"url":"https://api.github.com/repos/scrummyin/bee_farmer","forks_url":"https://api.github.com/repos/scrummyin/bee_farmer/forks","keys_url":"https://api.github.com/repos/scrummyin/bee_farmer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/scrummyin/bee_farmer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/scrummyin/bee_farmer/teams","hooks_url":"https://api.github.com/repos/scrummyin/bee_farmer/hooks","issue_events_url":"https://api.github.com/repos/scrummyin/bee_farmer/issues/events{/number}","events_url":"https://api.github.com/repos/scrummyin/bee_farmer/events","assignees_url":"https://api.github.com/repos/scrummyin/bee_farmer/assignees{/user}","branches_url":"https://api.github.com/repos/scrummyin/bee_farmer/branches{/branch}","tags_url":"https://api.github.com/repos/scrummyin/bee_farmer/tags","blobs_url":"https://api.github.com/repos/scrummyin/bee_farmer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/scrummyin/bee_farmer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/scrummyin/bee_farmer/git/refs{/sha}","trees_url":"https://api.github.com/repos/scrummyin/bee_farmer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/scrummyin/bee_farmer/statuses/{sha}","languages_url":"https://api.github.com/repos/scrummyin/bee_farmer/languages","stargazers_url":"https://api.github.com/repos/scrummyin/bee_farmer/stargazers","contributors_url":"https://api.github.com/repos/scrummyin/bee_farmer/contributors","subscribers_url":"https://api.github.com/repos/scrummyin/bee_farmer/subscribers","subscription_url":"https://api.github.com/repos/scrummyin/bee_farmer/subscription","commits_url":"https://api.github.com/repos/scrummyin/bee_farmer/commits{/sha}","git_commits_url":"https://api.github.com/repos/scrummyin/bee_farmer/git/commits{/sha}","comments_url":"https://api.github.com/repos/scrummyin/bee_farmer/comments{/number}","issue_comment_url":"https://api.github.com/repos/scrummyin/bee_farmer/issues/comments{/number}","contents_url":"https://api.github.com/repos/scrummyin/bee_farmer/contents/{+path}","compare_url":"https://api.github.com/repos/scrummyin/bee_farmer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/scrummyin/bee_farmer/merges","archive_url":"https://api.github.com/repos/scrummyin/bee_farmer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/scrummyin/bee_farmer/downloads","issues_url":"https://api.github.com/repos/scrummyin/bee_farmer/issues{/number}","pulls_url":"https://api.github.com/repos/scrummyin/bee_farmer/pulls{/number}","milestones_url":"https://api.github.com/repos/scrummyin/bee_farmer/milestones{/number}","notifications_url":"https://api.github.com/repos/scrummyin/bee_farmer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/scrummyin/bee_farmer/labels{/name}","releases_url":"https://api.github.com/repos/scrummyin/bee_farmer/releases{/id}","created_at":"2014-09-23T03:29:55Z","updated_at":"2014-09-23T03:50:11Z","pushed_at":"2015-07-06T20:36:57Z","git_url":"git://github.com/scrummyin/bee_farmer.git","ssh_url":"git@github.com:scrummyin/bee_farmer.git","clone_url":"https://github.com/scrummyin/bee_farmer.git","svn_url":"https://github.com/scrummyin/bee_farmer","homepage":null,"size":159,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/scrummyin/bee_farmer/pulls/1"},"html":{"href":"https://github.com/scrummyin/bee_farmer/pull/1"},"issue":{"href":"https://api.github.com/repos/scrummyin/bee_farmer/issues/1"},"comments":{"href":"https://api.github.com/repos/scrummyin/bee_farmer/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/scrummyin/bee_farmer/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/scrummyin/bee_farmer/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/scrummyin/bee_farmer/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/scrummyin/bee_farmer/statuses/8a0c0eefcc7a370d56d155baa23c02aae58dc6cd"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"scrummyin","id":158252,"avatar_url":"https://avatars.githubusercontent.com/u/158252?v=3","gravatar_id":"","url":"https://api.github.com/users/scrummyin","html_url":"https://github.com/scrummyin","followers_url":"https://api.github.com/users/scrummyin/followers","following_url":"https://api.github.com/users/scrummyin/following{/other_user}","gists_url":"https://api.github.com/users/scrummyin/gists{/gist_id}","starred_url":"https://api.github.com/users/scrummyin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scrummyin/subscriptions","organizations_url":"https://api.github.com/users/scrummyin/orgs","repos_url":"https://api.github.com/users/scrummyin/repos","events_url":"https://api.github.com/users/scrummyin/events{/privacy}","received_events_url":"https://api.github.com/users/scrummyin/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":2,"additions":4,"deletions":3,"changed_files":2}}