{"action":"opened","number":1607,"pull_request":{"url":"https://api.github.com/repos/youtube/vitess/pulls/1607","id":64645304,"html_url":"https://github.com/youtube/vitess/pull/1607","diff_url":"https://github.com/youtube/vitess/pull/1607.diff","patch_url":"https://github.com/youtube/vitess/pull/1607.patch","issue_url":"https://api.github.com/repos/youtube/vitess/issues/1607","number":1607,"state":"open","locked":false,"title":"automation: Retry vtworker commands when busy until cancelled.","user":{"login":"michael-berlin","id":3919251,"avatar_url":"https://avatars.githubusercontent.com/u/3919251?v=3","gravatar_id":"","url":"https://api.github.com/users/michael-berlin","html_url":"https://github.com/michael-berlin","followers_url":"https://api.github.com/users/michael-berlin/followers","following_url":"https://api.github.com/users/michael-berlin/following{/other_user}","gists_url":"https://api.github.com/users/michael-berlin/gists{/gist_id}","starred_url":"https://api.github.com/users/michael-berlin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michael-berlin/subscriptions","organizations_url":"https://api.github.com/users/michael-berlin/orgs","repos_url":"https://api.github.com/users/michael-berlin/repos","events_url":"https://api.github.com/users/michael-berlin/events{/privacy}","received_events_url":"https://api.github.com/users/michael-berlin/received_events","type":"User","site_admin":false},"body":"@alainjobart \r\n\r\nI recommend to review this change one commit at a time.\r\n\r\nThis change is required to parallelize vtworker commands in the automation when we have more pending vtworker commands than vtworker processes. Using this simple retry mechanism all commands will be processed eventually.","created_at":"2016-03-30T15:18:33Z","updated_at":"2016-03-30T15:18:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/youtube/vitess/pulls/1607/commits","review_comments_url":"https://api.github.com/repos/youtube/vitess/pulls/1607/comments","review_comment_url":"https://api.github.com/repos/youtube/vitess/pulls/comments{/number}","comments_url":"https://api.github.com/repos/youtube/vitess/issues/1607/comments","statuses_url":"https://api.github.com/repos/youtube/vitess/statuses/389da9599fb31ce2e58815437f71dbca917b0bf0","head":{"label":"michael-berlin:vtworker_retry_when_busy","ref":"vtworker_retry_when_busy","sha":"389da9599fb31ce2e58815437f71dbca917b0bf0","user":{"login":"michael-berlin","id":3919251,"avatar_url":"https://avatars.githubusercontent.com/u/3919251?v=3","gravatar_id":"","url":"https://api.github.com/users/michael-berlin","html_url":"https://github.com/michael-berlin","followers_url":"https://api.github.com/users/michael-berlin/followers","following_url":"https://api.github.com/users/michael-berlin/following{/other_user}","gists_url":"https://api.github.com/users/michael-berlin/gists{/gist_id}","starred_url":"https://api.github.com/users/michael-berlin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michael-berlin/subscriptions","organizations_url":"https://api.github.com/users/michael-berlin/orgs","repos_url":"https://api.github.com/users/michael-berlin/repos","events_url":"https://api.github.com/users/michael-berlin/events{/privacy}","received_events_url":"https://api.github.com/users/michael-berlin/received_events","type":"User","site_admin":false},"repo":{"id":30728262,"name":"vitess","full_name":"michael-berlin/vitess","owner":{"login":"michael-berlin","id":3919251,"avatar_url":"https://avatars.githubusercontent.com/u/3919251?v=3","gravatar_id":"","url":"https://api.github.com/users/michael-berlin","html_url":"https://github.com/michael-berlin","followers_url":"https://api.github.com/users/michael-berlin/followers","following_url":"https://api.github.com/users/michael-berlin/following{/other_user}","gists_url":"https://api.github.com/users/michael-berlin/gists{/gist_id}","starred_url":"https://api.github.com/users/michael-berlin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michael-berlin/subscriptions","organizations_url":"https://api.github.com/users/michael-berlin/orgs","repos_url":"https://api.github.com/users/michael-berlin/repos","events_url":"https://api.github.com/users/michael-berlin/events{/privacy}","received_events_url":"https://api.github.com/users/michael-berlin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/michael-berlin/vitess","description":"vitess provides servers and tools which facilitate scaling of MySQL databases for large scale web services.","fork":true,"url":"https://api.github.com/repos/michael-berlin/vitess","forks_url":"https://api.github.com/repos/michael-berlin/vitess/forks","keys_url":"https://api.github.com/repos/michael-berlin/vitess/keys{/key_id}","collaborators_url":"https://api.github.com/repos/michael-berlin/vitess/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/michael-berlin/vitess/teams","hooks_url":"https://api.github.com/repos/michael-berlin/vitess/hooks","issue_events_url":"https://api.github.com/repos/michael-berlin/vitess/issues/events{/number}","events_url":"https://api.github.com/repos/michael-berlin/vitess/events","assignees_url":"https://api.github.com/repos/michael-berlin/vitess/assignees{/user}","branches_url":"https://api.github.com/repos/michael-berlin/vitess/branches{/branch}","tags_url":"https://api.github.com/repos/michael-berlin/vitess/tags","blobs_url":"https://api.github.com/repos/michael-berlin/vitess/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/michael-berlin/vitess/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/michael-berlin/vitess/git/refs{/sha}","trees_url":"https://api.github.com/repos/michael-berlin/vitess/git/trees{/sha}","statuses_url":"https://api.github.com/repos/michael-berlin/vitess/statuses/{sha}","languages_url":"https://api.github.com/repos/michael-berlin/vitess/languages","stargazers_url":"https://api.github.com/repos/michael-berlin/vitess/stargazers","contributors_url":"https://api.github.com/repos/michael-berlin/vitess/contributors","subscribers_url":"https://api.github.com/repos/michael-berlin/vitess/subscribers","subscription_url":"https://api.github.com/repos/michael-berlin/vitess/subscription","commits_url":"https://api.github.com/repos/michael-berlin/vitess/commits{/sha}","git_commits_url":"https://api.github.com/repos/michael-berlin/vitess/git/commits{/sha}","comments_url":"https://api.github.com/repos/michael-berlin/vitess/comments{/number}","issue_comment_url":"https://api.github.com/repos/michael-berlin/vitess/issues/comments{/number}","contents_url":"https://api.github.com/repos/michael-berlin/vitess/contents/{+path}","compare_url":"https://api.github.com/repos/michael-berlin/vitess/compare/{base}...{head}","merges_url":"https://api.github.com/repos/michael-berlin/vitess/merges","archive_url":"https://api.github.com/repos/michael-berlin/vitess/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/michael-berlin/vitess/downloads","issues_url":"https://api.github.com/repos/michael-berlin/vitess/issues{/number}","pulls_url":"https://api.github.com/repos/michael-berlin/vitess/pulls{/number}","milestones_url":"https://api.github.com/repos/michael-berlin/vitess/milestones{/number}","notifications_url":"https://api.github.com/repos/michael-berlin/vitess/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/michael-berlin/vitess/labels{/name}","releases_url":"https://api.github.com/repos/michael-berlin/vitess/releases{/id}","deployments_url":"https://api.github.com/repos/michael-berlin/vitess/deployments","created_at":"2015-02-12T22:43:14Z","updated_at":"2015-02-12T22:43:17Z","pushed_at":"2016-03-30T15:13:24Z","git_url":"git://github.com/michael-berlin/vitess.git","ssh_url":"git@github.com:michael-berlin/vitess.git","clone_url":"https://github.com/michael-berlin/vitess.git","svn_url":"https://github.com/michael-berlin/vitess","homepage":null,"size":56764,"stargazers_count":0,"watchers_count":0,"language":"Go","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":"youtube:master","ref":"master","sha":"51d8c132f7b0a1e1bc5ee9c81ddee5d62abe549d","user":{"login":"youtube","id":4052902,"avatar_url":"https://avatars.githubusercontent.com/u/4052902?v=3","gravatar_id":"","url":"https://api.github.com/users/youtube","html_url":"https://github.com/youtube","followers_url":"https://api.github.com/users/youtube/followers","following_url":"https://api.github.com/users/youtube/following{/other_user}","gists_url":"https://api.github.com/users/youtube/gists{/gist_id}","starred_url":"https://api.github.com/users/youtube/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/youtube/subscriptions","organizations_url":"https://api.github.com/users/youtube/orgs","repos_url":"https://api.github.com/users/youtube/repos","events_url":"https://api.github.com/users/youtube/events{/privacy}","received_events_url":"https://api.github.com/users/youtube/received_events","type":"Organization","site_admin":false},"repo":{"id":11008207,"name":"vitess","full_name":"youtube/vitess","owner":{"login":"youtube","id":4052902,"avatar_url":"https://avatars.githubusercontent.com/u/4052902?v=3","gravatar_id":"","url":"https://api.github.com/users/youtube","html_url":"https://github.com/youtube","followers_url":"https://api.github.com/users/youtube/followers","following_url":"https://api.github.com/users/youtube/following{/other_user}","gists_url":"https://api.github.com/users/youtube/gists{/gist_id}","starred_url":"https://api.github.com/users/youtube/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/youtube/subscriptions","organizations_url":"https://api.github.com/users/youtube/orgs","repos_url":"https://api.github.com/users/youtube/repos","events_url":"https://api.github.com/users/youtube/events{/privacy}","received_events_url":"https://api.github.com/users/youtube/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/youtube/vitess","description":"vitess provides servers and tools which facilitate scaling of MySQL databases for large scale web services.","fork":false,"url":"https://api.github.com/repos/youtube/vitess","forks_url":"https://api.github.com/repos/youtube/vitess/forks","keys_url":"https://api.github.com/repos/youtube/vitess/keys{/key_id}","collaborators_url":"https://api.github.com/repos/youtube/vitess/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/youtube/vitess/teams","hooks_url":"https://api.github.com/repos/youtube/vitess/hooks","issue_events_url":"https://api.github.com/repos/youtube/vitess/issues/events{/number}","events_url":"https://api.github.com/repos/youtube/vitess/events","assignees_url":"https://api.github.com/repos/youtube/vitess/assignees{/user}","branches_url":"https://api.github.com/repos/youtube/vitess/branches{/branch}","tags_url":"https://api.github.com/repos/youtube/vitess/tags","blobs_url":"https://api.github.com/repos/youtube/vitess/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/youtube/vitess/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/youtube/vitess/git/refs{/sha}","trees_url":"https://api.github.com/repos/youtube/vitess/git/trees{/sha}","statuses_url":"https://api.github.com/repos/youtube/vitess/statuses/{sha}","languages_url":"https://api.github.com/repos/youtube/vitess/languages","stargazers_url":"https://api.github.com/repos/youtube/vitess/stargazers","contributors_url":"https://api.github.com/repos/youtube/vitess/contributors","subscribers_url":"https://api.github.com/repos/youtube/vitess/subscribers","subscription_url":"https://api.github.com/repos/youtube/vitess/subscription","commits_url":"https://api.github.com/repos/youtube/vitess/commits{/sha}","git_commits_url":"https://api.github.com/repos/youtube/vitess/git/commits{/sha}","comments_url":"https://api.github.com/repos/youtube/vitess/comments{/number}","issue_comment_url":"https://api.github.com/repos/youtube/vitess/issues/comments{/number}","contents_url":"https://api.github.com/repos/youtube/vitess/contents/{+path}","compare_url":"https://api.github.com/repos/youtube/vitess/compare/{base}...{head}","merges_url":"https://api.github.com/repos/youtube/vitess/merges","archive_url":"https://api.github.com/repos/youtube/vitess/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/youtube/vitess/downloads","issues_url":"https://api.github.com/repos/youtube/vitess/issues{/number}","pulls_url":"https://api.github.com/repos/youtube/vitess/pulls{/number}","milestones_url":"https://api.github.com/repos/youtube/vitess/milestones{/number}","notifications_url":"https://api.github.com/repos/youtube/vitess/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/youtube/vitess/labels{/name}","releases_url":"https://api.github.com/repos/youtube/vitess/releases{/id}","deployments_url":"https://api.github.com/repos/youtube/vitess/deployments","created_at":"2013-06-27T21:20:28Z","updated_at":"2016-03-30T14:34:47Z","pushed_at":"2016-03-30T06:07:15Z","git_url":"git://github.com/youtube/vitess.git","ssh_url":"git@github.com:youtube/vitess.git","clone_url":"https://github.com/youtube/vitess.git","svn_url":"https://github.com/youtube/vitess","homepage":null,"size":62512,"stargazers_count":3347,"watchers_count":3347,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":419,"mirror_url":null,"open_issues_count":22,"forks":419,"open_issues":22,"watchers":3347,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/youtube/vitess/pulls/1607"},"html":{"href":"https://github.com/youtube/vitess/pull/1607"},"issue":{"href":"https://api.github.com/repos/youtube/vitess/issues/1607"},"comments":{"href":"https://api.github.com/repos/youtube/vitess/issues/1607/comments"},"review_comments":{"href":"https://api.github.com/repos/youtube/vitess/pulls/1607/comments"},"review_comment":{"href":"https://api.github.com/repos/youtube/vitess/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/youtube/vitess/pulls/1607/commits"},"statuses":{"href":"https://api.github.com/repos/youtube/vitess/statuses/389da9599fb31ce2e58815437f71dbca917b0bf0"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":12,"additions":506,"deletions":94,"changed_files":19}}