{"action":"closed","number":10,"pull_request":{"url":"https://api.github.com/repos/Ubuntu-Solutions-Engineering/macumba/pulls/10","id":35447360,"html_url":"https://github.com/Ubuntu-Solutions-Engineering/macumba/pull/10","diff_url":"https://github.com/Ubuntu-Solutions-Engineering/macumba/pull/10.diff","patch_url":"https://github.com/Ubuntu-Solutions-Engineering/macumba/pull/10.patch","issue_url":"https://api.github.com/repos/Ubuntu-Solutions-Engineering/macumba/issues/10","number":10,"state":"closed","locked":false,"title":"Improvements to handling retries and polling for responses","user":{"login":"mikemccracken","id":1768106,"avatar_url":"https://avatars.githubusercontent.com/u/1768106?v=3","gravatar_id":"","url":"https://api.github.com/users/mikemccracken","html_url":"https://github.com/mikemccracken","followers_url":"https://api.github.com/users/mikemccracken/followers","following_url":"https://api.github.com/users/mikemccracken/following{/other_user}","gists_url":"https://api.github.com/users/mikemccracken/gists{/gist_id}","starred_url":"https://api.github.com/users/mikemccracken/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikemccracken/subscriptions","organizations_url":"https://api.github.com/users/mikemccracken/orgs","repos_url":"https://api.github.com/users/mikemccracken/repos","events_url":"https://api.github.com/users/mikemccracken/events{/privacy}","received_events_url":"https://api.github.com/users/mikemccracken/received_events","type":"User","site_admin":false},"body":"1. adds a short sleep in JujuWS.receive() to avoid eating tons of CPU while waiting for responses.\r\n\r\n2. add optional timeout for receives, and set it to 60 seconds for status()\r\n\r\n3. do not automatically retry calls, some of which may change remote state\r\n\r\nSigned-off-by: Michael McCracken <mike.mccracken@canonical.com>","created_at":"2015-05-14T18:24:21Z","updated_at":"2015-05-14T19:07:49Z","closed_at":"2015-05-14T19:07:49Z","merged_at":"2015-05-14T19:07:49Z","merge_commit_sha":"3fff2d036c8a91e1e900ac3c23eee8d7c70d083e","assignee":{"login":"battlemidget","id":51892,"avatar_url":"https://avatars.githubusercontent.com/u/51892?v=3","gravatar_id":"","url":"https://api.github.com/users/battlemidget","html_url":"https://github.com/battlemidget","followers_url":"https://api.github.com/users/battlemidget/followers","following_url":"https://api.github.com/users/battlemidget/following{/other_user}","gists_url":"https://api.github.com/users/battlemidget/gists{/gist_id}","starred_url":"https://api.github.com/users/battlemidget/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/battlemidget/subscriptions","organizations_url":"https://api.github.com/users/battlemidget/orgs","repos_url":"https://api.github.com/users/battlemidget/repos","events_url":"https://api.github.com/users/battlemidget/events{/privacy}","received_events_url":"https://api.github.com/users/battlemidget/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/Ubuntu-Solutions-Engineering/macumba/pulls/10/commits","review_comments_url":"https://api.github.com/repos/Ubuntu-Solutions-Engineering/macumba/pulls/10/comments","review_comment_url":"https://api.github.com/repos/Ubuntu-Solutions-Engineering/macumba/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Ubuntu-Solutions-Engineering/macumba/issues/10/comments","statuses_url":"https://api.github.com/repos/Ubuntu-Solutions-Engineering/macumba/statuses/081f68476a89103719c643a0ada76c08845411d9","head":{"label":"Ubuntu-Solutions-Engineering:better-retries","ref":"better-retries","sha":"081f68476a89103719c643a0ada76c08845411d9","user":{"login":"Ubuntu-Solutions-Engineering","id":6772632,"avatar_url":"https://avatars.githubusercontent.com/u/6772632?v=3","gravatar_id":"","url":"https://api.github.com/users/Ubuntu-Solutions-Engineering","html_url":"https://github.com/Ubuntu-Solutions-Engineering","followers_url":"https://api.github.com/users/Ubuntu-Solutions-Engineering/followers","following_url":"https://api.github.com/users/Ubuntu-Solutions-Engineering/following{/other_user}","gists_url":"https://api.github.com/users/Ubuntu-Solutions-Engineering/gists{/gist_id}","starred_url":"https://api.github.com/users/Ubuntu-Solutions-Engineering/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ubuntu-Solutions-Engineering/subscriptions","organizations_url":"https://api.github.com/users/Ubuntu-Solutions-Engineering/orgs","repos_url":"https://api.github.com/users/Ubuntu-Solutions-Engineering/repos","events_url":"https://api.github.com/users/Ubuntu-Solutions-Engineering/events{/privacy}","received_events_url":"https://api.github.com/users/Ubuntu-Solutions-Engineering/received_events","type":"Organization","site_admin":false},"repo":{"id":21481422,"name":"macumba","full_name":"Ubuntu-Solutions-Engineering/macumba","owner":{"login":"Ubuntu-Solutions-Engineering","id":6772632,"avatar_url":"https://avatars.githubusercontent.com/u/6772632?v=3","gravatar_id":"","url":"https://api.github.com/users/Ubuntu-Solutions-Engineering","html_url":"https://github.com/Ubuntu-Solutions-Engineering","followers_url":"https://api.github.com/users/Ubuntu-Solutions-Engineering/followers","following_url":"https://api.github.com/users/Ubuntu-Solutions-Engineering/following{/other_user}","gists_url":"https://api.github.com/users/Ubuntu-Solutions-Engineering/gists{/gist_id}","starred_url":"https://api.github.com/users/Ubuntu-Solutions-Engineering/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ubuntu-Solutions-Engineering/subscriptions","organizations_url":"https://api.github.com/users/Ubuntu-Solutions-Engineering/orgs","repos_url":"https://api.github.com/users/Ubuntu-Solutions-Engineering/repos","events_url":"https://api.github.com/users/Ubuntu-Solutions-Engineering/events{/privacy}","received_events_url":"https://api.github.com/users/Ubuntu-Solutions-Engineering/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Ubuntu-Solutions-Engineering/macumba","description":"python3 juju api client","fork":false,"url":"https://api.github.com/repos/Ubuntu-Solutions-Engineering/macumba","forks_url":"https://api.github.com/repos/Ubuntu-Solutions-Engineering/macumba/forks","keys_url":"https://api.github.com/repos/Ubuntu-Solutions-Engineering/macumba/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Ubuntu-Solutions-Engineering/macumba/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Ubuntu-Solutions-Engineering/macumba/teams","hooks_url":"https://api.github.com/repos/Ubuntu-Solutions-Engineering/macumba/hooks","issue_events_url":"https://api.github.com/repos/Ubuntu-Solutions-Engineering/macumba/issues/events{/number}","events_url":"https://api.github.com/repos/Ubuntu-Solutions-Engineering/macumba/events","assignees_url":"https://api.github.com/repos/Ubuntu-Solutions-Engineering/macumba/assignees{/user}","branches_url":"https://api.github.com/repos/Ubuntu-Solutions-Engineering/macumba/branches{/branch}","tags_url":"https://api.github.com/repos/Ubuntu-Solutions-Engineering/macumba/tags","blobs_url":"https://api.github.com/repos/Ubuntu-Solutions-Engineering/macumba/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Ubuntu-Solutions-Engineering/macumba/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Ubuntu-Solutions-Engineering/macumba/git/refs{/sha}","trees_url":"https://api.github.com/repos/Ubuntu-Solutions-Engineering/macumba/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Ubuntu-Solutions-Engineering/macumba/statuses/{sha}","languages_url":"https://api.github.com/repos/Ubuntu-Solutions-Engineering/macumba/languages","stargazers_url":"https://api.github.com/repos/Ubuntu-Solutions-Engineering/macumba/stargazers","contributors_url":"https://api.github.com/repos/Ubuntu-Solutions-Engineering/macumba/contributors","subscribers_url":"https://api.github.com/repos/Ubuntu-Solutions-Engineering/macumba/subscribers","subscription_url":"https://api.github.com/repos/Ubuntu-Solutions-Engineering/macumba/subscription","commits_url":"https://api.github.com/repos/Ubuntu-Solutions-Engineering/macumba/commits{/sha}","git_commits_url":"https://api.github.com/repos/Ubuntu-Solutions-Engineering/macumba/git/commits{/sha}","comments_url":"https://api.github.com/repos/Ubuntu-Solutions-Engineering/macumba/comments{/number}","issue_comment_url":"https://api.github.com/repos/Ubuntu-Solutions-Engineering/macumba/issues/comments{/number}","contents_url":"https://api.github.com/repos/Ubuntu-Solutions-Engineering/macumba/contents/{+path}","compare_url":"https://api.github.com/repos/Ubuntu-Solutions-Engineering/macumba/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Ubuntu-Solutions-Engineering/macumba/merges","archive_url":"https://api.github.com/repos/Ubuntu-Solutions-Engineering/macumba/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Ubuntu-Solutions-Engineering/macumba/downloads","issues_url":"https://api.github.com/repos/Ubuntu-Solutions-Engineering/macumba/issues{/number}","pulls_url":"https://api.github.com/repos/Ubuntu-Solutions-Engineering/macumba/pulls{/number}","milestones_url":"https://api.github.com/repos/Ubuntu-Solutions-Engineering/macumba/milestones{/number}","notifications_url":"https://api.github.com/repos/Ubuntu-Solutions-Engineering/macumba/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Ubuntu-Solutions-Engineering/macumba/labels{/name}","releases_url":"https://api.github.com/repos/Ubuntu-Solutions-Engineering/macumba/releases{/id}","created_at":"2014-07-04T01:04:37Z","updated_at":"2014-09-27T03:28:16Z","pushed_at":"2015-05-14T19:07:49Z","git_url":"git://github.com/Ubuntu-Solutions-Engineering/macumba.git","ssh_url":"git@github.com:Ubuntu-Solutions-Engineering/macumba.git","clone_url":"https://github.com/Ubuntu-Solutions-Engineering/macumba.git","svn_url":"https://github.com/Ubuntu-Solutions-Engineering/macumba","homepage":null,"size":455,"stargazers_count":3,"watchers_count":3,"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":3,"default_branch":"master"}},"base":{"label":"Ubuntu-Solutions-Engineering:master","ref":"master","sha":"24541d4a0ff4784823dbc3b38f5cf23d7c4325a1","user":{"login":"Ubuntu-Solutions-Engineering","id":6772632,"avatar_url":"https://avatars.githubusercontent.com/u/6772632?v=3","gravatar_id":"","url":"https://api.github.com/users/Ubuntu-Solutions-Engineering","html_url":"https://github.com/Ubuntu-Solutions-Engineering","followers_url":"https://api.github.com/users/Ubuntu-Solutions-Engineering/followers","following_url":"https://api.github.com/users/Ubuntu-Solutions-Engineering/following{/other_user}","gists_url":"https://api.github.com/users/Ubuntu-Solutions-Engineering/gists{/gist_id}","starred_url":"https://api.github.com/users/Ubuntu-Solutions-Engineering/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ubuntu-Solutions-Engineering/subscriptions","organizations_url":"https://api.github.com/users/Ubuntu-Solutions-Engineering/orgs","repos_url":"https://api.github.com/users/Ubuntu-Solutions-Engineering/repos","events_url":"https://api.github.com/users/Ubuntu-Solutions-Engineering/events{/privacy}","received_events_url":"https://api.github.com/users/Ubuntu-Solutions-Engineering/received_events","type":"Organization","site_admin":false},"repo":{"id":21481422,"name":"macumba","full_name":"Ubuntu-Solutions-Engineering/macumba","owner":{"login":"Ubuntu-Solutions-Engineering","id":6772632,"avatar_url":"https://avatars.githubusercontent.com/u/6772632?v=3","gravatar_id":"","url":"https://api.github.com/users/Ubuntu-Solutions-Engineering","html_url":"https://github.com/Ubuntu-Solutions-Engineering","followers_url":"https://api.github.com/users/Ubuntu-Solutions-Engineering/followers","following_url":"https://api.github.com/users/Ubuntu-Solutions-Engineering/following{/other_user}","gists_url":"https://api.github.com/users/Ubuntu-Solutions-Engineering/gists{/gist_id}","starred_url":"https://api.github.com/users/Ubuntu-Solutions-Engineering/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ubuntu-Solutions-Engineering/subscriptions","organizations_url":"https://api.github.com/users/Ubuntu-Solutions-Engineering/orgs","repos_url":"https://api.github.com/users/Ubuntu-Solutions-Engineering/repos","events_url":"https://api.github.com/users/Ubuntu-Solutions-Engineering/events{/privacy}","received_events_url":"https://api.github.com/users/Ubuntu-Solutions-Engineering/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Ubuntu-Solutions-Engineering/macumba","description":"python3 juju api client","fork":false,"url":"https://api.github.com/repos/Ubuntu-Solutions-Engineering/macumba","forks_url":"https://api.github.com/repos/Ubuntu-Solutions-Engineering/macumba/forks","keys_url":"https://api.github.com/repos/Ubuntu-Solutions-Engineering/macumba/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Ubuntu-Solutions-Engineering/macumba/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Ubuntu-Solutions-Engineering/macumba/teams","hooks_url":"https://api.github.com/repos/Ubuntu-Solutions-Engineering/macumba/hooks","issue_events_url":"https://api.github.com/repos/Ubuntu-Solutions-Engineering/macumba/issues/events{/number}","events_url":"https://api.github.com/repos/Ubuntu-Solutions-Engineering/macumba/events","assignees_url":"https://api.github.com/repos/Ubuntu-Solutions-Engineering/macumba/assignees{/user}","branches_url":"https://api.github.com/repos/Ubuntu-Solutions-Engineering/macumba/branches{/branch}","tags_url":"https://api.github.com/repos/Ubuntu-Solutions-Engineering/macumba/tags","blobs_url":"https://api.github.com/repos/Ubuntu-Solutions-Engineering/macumba/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Ubuntu-Solutions-Engineering/macumba/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Ubuntu-Solutions-Engineering/macumba/git/refs{/sha}","trees_url":"https://api.github.com/repos/Ubuntu-Solutions-Engineering/macumba/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Ubuntu-Solutions-Engineering/macumba/statuses/{sha}","languages_url":"https://api.github.com/repos/Ubuntu-Solutions-Engineering/macumba/languages","stargazers_url":"https://api.github.com/repos/Ubuntu-Solutions-Engineering/macumba/stargazers","contributors_url":"https://api.github.com/repos/Ubuntu-Solutions-Engineering/macumba/contributors","subscribers_url":"https://api.github.com/repos/Ubuntu-Solutions-Engineering/macumba/subscribers","subscription_url":"https://api.github.com/repos/Ubuntu-Solutions-Engineering/macumba/subscription","commits_url":"https://api.github.com/repos/Ubuntu-Solutions-Engineering/macumba/commits{/sha}","git_commits_url":"https://api.github.com/repos/Ubuntu-Solutions-Engineering/macumba/git/commits{/sha}","comments_url":"https://api.github.com/repos/Ubuntu-Solutions-Engineering/macumba/comments{/number}","issue_comment_url":"https://api.github.com/repos/Ubuntu-Solutions-Engineering/macumba/issues/comments{/number}","contents_url":"https://api.github.com/repos/Ubuntu-Solutions-Engineering/macumba/contents/{+path}","compare_url":"https://api.github.com/repos/Ubuntu-Solutions-Engineering/macumba/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Ubuntu-Solutions-Engineering/macumba/merges","archive_url":"https://api.github.com/repos/Ubuntu-Solutions-Engineering/macumba/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Ubuntu-Solutions-Engineering/macumba/downloads","issues_url":"https://api.github.com/repos/Ubuntu-Solutions-Engineering/macumba/issues{/number}","pulls_url":"https://api.github.com/repos/Ubuntu-Solutions-Engineering/macumba/pulls{/number}","milestones_url":"https://api.github.com/repos/Ubuntu-Solutions-Engineering/macumba/milestones{/number}","notifications_url":"https://api.github.com/repos/Ubuntu-Solutions-Engineering/macumba/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Ubuntu-Solutions-Engineering/macumba/labels{/name}","releases_url":"https://api.github.com/repos/Ubuntu-Solutions-Engineering/macumba/releases{/id}","created_at":"2014-07-04T01:04:37Z","updated_at":"2014-09-27T03:28:16Z","pushed_at":"2015-05-14T19:07:49Z","git_url":"git://github.com/Ubuntu-Solutions-Engineering/macumba.git","ssh_url":"git@github.com:Ubuntu-Solutions-Engineering/macumba.git","clone_url":"https://github.com/Ubuntu-Solutions-Engineering/macumba.git","svn_url":"https://github.com/Ubuntu-Solutions-Engineering/macumba","homepage":null,"size":455,"stargazers_count":3,"watchers_count":3,"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":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Ubuntu-Solutions-Engineering/macumba/pulls/10"},"html":{"href":"https://github.com/Ubuntu-Solutions-Engineering/macumba/pull/10"},"issue":{"href":"https://api.github.com/repos/Ubuntu-Solutions-Engineering/macumba/issues/10"},"comments":{"href":"https://api.github.com/repos/Ubuntu-Solutions-Engineering/macumba/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/Ubuntu-Solutions-Engineering/macumba/pulls/10/comments"},"review_comment":{"href":"https://api.github.com/repos/Ubuntu-Solutions-Engineering/macumba/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Ubuntu-Solutions-Engineering/macumba/pulls/10/commits"},"statuses":{"href":"https://api.github.com/repos/Ubuntu-Solutions-Engineering/macumba/statuses/081f68476a89103719c643a0ada76c08845411d9"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"battlemidget","id":51892,"avatar_url":"https://avatars.githubusercontent.com/u/51892?v=3","gravatar_id":"","url":"https://api.github.com/users/battlemidget","html_url":"https://github.com/battlemidget","followers_url":"https://api.github.com/users/battlemidget/followers","following_url":"https://api.github.com/users/battlemidget/following{/other_user}","gists_url":"https://api.github.com/users/battlemidget/gists{/gist_id}","starred_url":"https://api.github.com/users/battlemidget/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/battlemidget/subscriptions","organizations_url":"https://api.github.com/users/battlemidget/orgs","repos_url":"https://api.github.com/users/battlemidget/repos","events_url":"https://api.github.com/users/battlemidget/events{/privacy}","received_events_url":"https://api.github.com/users/battlemidget/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":1,"additions":19,"deletions":13,"changed_files":1}}