{"action":"opened","number":1,"pull_request":{"url":"https://api.github.com/repos/sakamotomsh/zha/pulls/1","id":53809854,"html_url":"https://github.com/sakamotomsh/zha/pull/1","diff_url":"https://github.com/sakamotomsh/zha/pull/1.diff","patch_url":"https://github.com/sakamotomsh/zha/pull/1.patch","issue_url":"https://api.github.com/repos/sakamotomsh/zha/issues/1","number":1,"state":"open","locked":false,"title":"run become_declustered before normal exit","user":{"login":"bwtakacy","id":5819897,"avatar_url":"https://avatars.githubusercontent.com/u/5819897?v=3","gravatar_id":"","url":"https://api.github.com/users/bwtakacy","html_url":"https://github.com/bwtakacy","followers_url":"https://api.github.com/users/bwtakacy/followers","following_url":"https://api.github.com/users/bwtakacy/following{/other_user}","gists_url":"https://api.github.com/users/bwtakacy/gists{/gist_id}","starred_url":"https://api.github.com/users/bwtakacy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bwtakacy/subscriptions","organizations_url":"https://api.github.com/users/bwtakacy/orgs","repos_url":"https://api.github.com/users/bwtakacy/repos","events_url":"https://api.github.com/users/bwtakacy/events{/privacy}","received_events_url":"https://api.github.com/users/bwtakacy/received_events","type":"User","site_admin":false},"body":"I have found that if the zha process with ACT:HEALTHY:CLUSTERED exits with Ctrl+C, become_declustered is not called.\r\nThis is not a problem but I feel this is annoying because we have to do decluster manually even when normal exits.\r\n\r\nRegards,","created_at":"2015-12-16T08:04:40Z","updated_at":"2015-12-16T08:04:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d4655f56c04b1cf4b36950a779caee6b971d927d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sakamotomsh/zha/pulls/1/commits","review_comments_url":"https://api.github.com/repos/sakamotomsh/zha/pulls/1/comments","review_comment_url":"https://api.github.com/repos/sakamotomsh/zha/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sakamotomsh/zha/issues/1/comments","statuses_url":"https://api.github.com/repos/sakamotomsh/zha/statuses/2bb07511960dcff3a705384c3e199cb4ac8c43e3","head":{"label":"bwtakacy:declustered_before_normal_exit","ref":"declustered_before_normal_exit","sha":"2bb07511960dcff3a705384c3e199cb4ac8c43e3","user":{"login":"bwtakacy","id":5819897,"avatar_url":"https://avatars.githubusercontent.com/u/5819897?v=3","gravatar_id":"","url":"https://api.github.com/users/bwtakacy","html_url":"https://github.com/bwtakacy","followers_url":"https://api.github.com/users/bwtakacy/followers","following_url":"https://api.github.com/users/bwtakacy/following{/other_user}","gists_url":"https://api.github.com/users/bwtakacy/gists{/gist_id}","starred_url":"https://api.github.com/users/bwtakacy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bwtakacy/subscriptions","organizations_url":"https://api.github.com/users/bwtakacy/orgs","repos_url":"https://api.github.com/users/bwtakacy/repos","events_url":"https://api.github.com/users/bwtakacy/events{/privacy}","received_events_url":"https://api.github.com/users/bwtakacy/received_events","type":"User","site_admin":false},"repo":{"id":47247268,"name":"zha","full_name":"bwtakacy/zha","owner":{"login":"bwtakacy","id":5819897,"avatar_url":"https://avatars.githubusercontent.com/u/5819897?v=3","gravatar_id":"","url":"https://api.github.com/users/bwtakacy","html_url":"https://github.com/bwtakacy","followers_url":"https://api.github.com/users/bwtakacy/followers","following_url":"https://api.github.com/users/bwtakacy/following{/other_user}","gists_url":"https://api.github.com/users/bwtakacy/gists{/gist_id}","starred_url":"https://api.github.com/users/bwtakacy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bwtakacy/subscriptions","organizations_url":"https://api.github.com/users/bwtakacy/orgs","repos_url":"https://api.github.com/users/bwtakacy/repos","events_url":"https://api.github.com/users/bwtakacy/events{/privacy}","received_events_url":"https://api.github.com/users/bwtakacy/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bwtakacy/zha","description":"small python library that delivers high availavility to an arbitary program.","fork":true,"url":"https://api.github.com/repos/bwtakacy/zha","forks_url":"https://api.github.com/repos/bwtakacy/zha/forks","keys_url":"https://api.github.com/repos/bwtakacy/zha/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bwtakacy/zha/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bwtakacy/zha/teams","hooks_url":"https://api.github.com/repos/bwtakacy/zha/hooks","issue_events_url":"https://api.github.com/repos/bwtakacy/zha/issues/events{/number}","events_url":"https://api.github.com/repos/bwtakacy/zha/events","assignees_url":"https://api.github.com/repos/bwtakacy/zha/assignees{/user}","branches_url":"https://api.github.com/repos/bwtakacy/zha/branches{/branch}","tags_url":"https://api.github.com/repos/bwtakacy/zha/tags","blobs_url":"https://api.github.com/repos/bwtakacy/zha/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bwtakacy/zha/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bwtakacy/zha/git/refs{/sha}","trees_url":"https://api.github.com/repos/bwtakacy/zha/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bwtakacy/zha/statuses/{sha}","languages_url":"https://api.github.com/repos/bwtakacy/zha/languages","stargazers_url":"https://api.github.com/repos/bwtakacy/zha/stargazers","contributors_url":"https://api.github.com/repos/bwtakacy/zha/contributors","subscribers_url":"https://api.github.com/repos/bwtakacy/zha/subscribers","subscription_url":"https://api.github.com/repos/bwtakacy/zha/subscription","commits_url":"https://api.github.com/repos/bwtakacy/zha/commits{/sha}","git_commits_url":"https://api.github.com/repos/bwtakacy/zha/git/commits{/sha}","comments_url":"https://api.github.com/repos/bwtakacy/zha/comments{/number}","issue_comment_url":"https://api.github.com/repos/bwtakacy/zha/issues/comments{/number}","contents_url":"https://api.github.com/repos/bwtakacy/zha/contents/{+path}","compare_url":"https://api.github.com/repos/bwtakacy/zha/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bwtakacy/zha/merges","archive_url":"https://api.github.com/repos/bwtakacy/zha/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bwtakacy/zha/downloads","issues_url":"https://api.github.com/repos/bwtakacy/zha/issues{/number}","pulls_url":"https://api.github.com/repos/bwtakacy/zha/pulls{/number}","milestones_url":"https://api.github.com/repos/bwtakacy/zha/milestones{/number}","notifications_url":"https://api.github.com/repos/bwtakacy/zha/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bwtakacy/zha/labels{/name}","releases_url":"https://api.github.com/repos/bwtakacy/zha/releases{/id}","created_at":"2015-12-02T08:22:52Z","updated_at":"2015-12-02T08:22:52Z","pushed_at":"2015-12-16T07:56:50Z","git_url":"git://github.com/bwtakacy/zha.git","ssh_url":"git@github.com:bwtakacy/zha.git","clone_url":"https://github.com/bwtakacy/zha.git","svn_url":"https://github.com/bwtakacy/zha","homepage":"","size":140,"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":"sakamotomsh:master","ref":"master","sha":"bc14ccfd98a5fa2be8b500da95b886ba0e8df281","user":{"login":"sakamotomsh","id":885753,"avatar_url":"https://avatars.githubusercontent.com/u/885753?v=3","gravatar_id":"","url":"https://api.github.com/users/sakamotomsh","html_url":"https://github.com/sakamotomsh","followers_url":"https://api.github.com/users/sakamotomsh/followers","following_url":"https://api.github.com/users/sakamotomsh/following{/other_user}","gists_url":"https://api.github.com/users/sakamotomsh/gists{/gist_id}","starred_url":"https://api.github.com/users/sakamotomsh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sakamotomsh/subscriptions","organizations_url":"https://api.github.com/users/sakamotomsh/orgs","repos_url":"https://api.github.com/users/sakamotomsh/repos","events_url":"https://api.github.com/users/sakamotomsh/events{/privacy}","received_events_url":"https://api.github.com/users/sakamotomsh/received_events","type":"User","site_admin":false},"repo":{"id":36338203,"name":"zha","full_name":"sakamotomsh/zha","owner":{"login":"sakamotomsh","id":885753,"avatar_url":"https://avatars.githubusercontent.com/u/885753?v=3","gravatar_id":"","url":"https://api.github.com/users/sakamotomsh","html_url":"https://github.com/sakamotomsh","followers_url":"https://api.github.com/users/sakamotomsh/followers","following_url":"https://api.github.com/users/sakamotomsh/following{/other_user}","gists_url":"https://api.github.com/users/sakamotomsh/gists{/gist_id}","starred_url":"https://api.github.com/users/sakamotomsh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sakamotomsh/subscriptions","organizations_url":"https://api.github.com/users/sakamotomsh/orgs","repos_url":"https://api.github.com/users/sakamotomsh/repos","events_url":"https://api.github.com/users/sakamotomsh/events{/privacy}","received_events_url":"https://api.github.com/users/sakamotomsh/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sakamotomsh/zha","description":"small python library that delivers high availavility to an arbitary program.","fork":false,"url":"https://api.github.com/repos/sakamotomsh/zha","forks_url":"https://api.github.com/repos/sakamotomsh/zha/forks","keys_url":"https://api.github.com/repos/sakamotomsh/zha/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sakamotomsh/zha/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sakamotomsh/zha/teams","hooks_url":"https://api.github.com/repos/sakamotomsh/zha/hooks","issue_events_url":"https://api.github.com/repos/sakamotomsh/zha/issues/events{/number}","events_url":"https://api.github.com/repos/sakamotomsh/zha/events","assignees_url":"https://api.github.com/repos/sakamotomsh/zha/assignees{/user}","branches_url":"https://api.github.com/repos/sakamotomsh/zha/branches{/branch}","tags_url":"https://api.github.com/repos/sakamotomsh/zha/tags","blobs_url":"https://api.github.com/repos/sakamotomsh/zha/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sakamotomsh/zha/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sakamotomsh/zha/git/refs{/sha}","trees_url":"https://api.github.com/repos/sakamotomsh/zha/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sakamotomsh/zha/statuses/{sha}","languages_url":"https://api.github.com/repos/sakamotomsh/zha/languages","stargazers_url":"https://api.github.com/repos/sakamotomsh/zha/stargazers","contributors_url":"https://api.github.com/repos/sakamotomsh/zha/contributors","subscribers_url":"https://api.github.com/repos/sakamotomsh/zha/subscribers","subscription_url":"https://api.github.com/repos/sakamotomsh/zha/subscription","commits_url":"https://api.github.com/repos/sakamotomsh/zha/commits{/sha}","git_commits_url":"https://api.github.com/repos/sakamotomsh/zha/git/commits{/sha}","comments_url":"https://api.github.com/repos/sakamotomsh/zha/comments{/number}","issue_comment_url":"https://api.github.com/repos/sakamotomsh/zha/issues/comments{/number}","contents_url":"https://api.github.com/repos/sakamotomsh/zha/contents/{+path}","compare_url":"https://api.github.com/repos/sakamotomsh/zha/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sakamotomsh/zha/merges","archive_url":"https://api.github.com/repos/sakamotomsh/zha/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sakamotomsh/zha/downloads","issues_url":"https://api.github.com/repos/sakamotomsh/zha/issues{/number}","pulls_url":"https://api.github.com/repos/sakamotomsh/zha/pulls{/number}","milestones_url":"https://api.github.com/repos/sakamotomsh/zha/milestones{/number}","notifications_url":"https://api.github.com/repos/sakamotomsh/zha/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sakamotomsh/zha/labels{/name}","releases_url":"https://api.github.com/repos/sakamotomsh/zha/releases{/id}","created_at":"2015-05-27T02:42:41Z","updated_at":"2015-12-06T02:51:42Z","pushed_at":"2015-12-16T08:04:40Z","git_url":"git://github.com/sakamotomsh/zha.git","ssh_url":"git@github.com:sakamotomsh/zha.git","clone_url":"https://github.com/sakamotomsh/zha.git","svn_url":"https://github.com/sakamotomsh/zha","homepage":"","size":344,"stargazers_count":7,"watchers_count":7,"language":"Python","has_issues":true,"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":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sakamotomsh/zha/pulls/1"},"html":{"href":"https://github.com/sakamotomsh/zha/pull/1"},"issue":{"href":"https://api.github.com/repos/sakamotomsh/zha/issues/1"},"comments":{"href":"https://api.github.com/repos/sakamotomsh/zha/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/sakamotomsh/zha/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/sakamotomsh/zha/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sakamotomsh/zha/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/sakamotomsh/zha/statuses/2bb07511960dcff3a705384c3e199cb4ac8c43e3"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":4,"deletions":1,"changed_files":2}}