{"action":"opened","number":84,"pull_request":{"url":"https://api.github.com/repos/travis-ci/worker/pulls/84","id":43545932,"html_url":"https://github.com/travis-ci/worker/pull/84","diff_url":"https://github.com/travis-ci/worker/pull/84.diff","patch_url":"https://github.com/travis-ci/worker/pull/84.patch","issue_url":"https://api.github.com/repos/travis-ci/worker/issues/84","number":84,"state":"open","locked":false,"title":"Fix graceful shutdown, mark π","user":{"login":"henrikhodne","id":24421,"avatar_url":"https://avatars.githubusercontent.com/u/24421?v=3","gravatar_id":"","url":"https://api.github.com/users/henrikhodne","html_url":"https://github.com/henrikhodne","followers_url":"https://api.github.com/users/henrikhodne/followers","following_url":"https://api.github.com/users/henrikhodne/following{/other_user}","gists_url":"https://api.github.com/users/henrikhodne/gists{/gist_id}","starred_url":"https://api.github.com/users/henrikhodne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/henrikhodne/subscriptions","organizations_url":"https://api.github.com/users/henrikhodne/orgs","repos_url":"https://api.github.com/users/henrikhodne/repos","events_url":"https://api.github.com/users/henrikhodne/events{/privacy}","received_events_url":"https://api.github.com/users/henrikhodne/received_events","type":"User","site_admin":false},"body":"The `graceful` channel isn't buffered, so sending to it will block until\r\nthe processor is shut down. Calling `GracefulShutdown()` again will block\r\nforever. Closing the channel will return immediately.\r\n\r\nThis should fix the issue with graceful shutdowns, since the processor pool waits for `GracefulShutdown()` to return before moving on to the next processor.","created_at":"2015-08-27T17:47:38Z","updated_at":"2015-08-27T17:47:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/travis-ci/worker/pulls/84/commits","review_comments_url":"https://api.github.com/repos/travis-ci/worker/pulls/84/comments","review_comment_url":"https://api.github.com/repos/travis-ci/worker/pulls/comments{/number}","comments_url":"https://api.github.com/repos/travis-ci/worker/issues/84/comments","statuses_url":"https://api.github.com/repos/travis-ci/worker/statuses/f55e8c3f19b70711cec597fa01127e439801f0f6","head":{"label":"travis-ci:hh-fix-graceful-shutdown","ref":"hh-fix-graceful-shutdown","sha":"f55e8c3f19b70711cec597fa01127e439801f0f6","user":{"login":"travis-ci","id":639823,"avatar_url":"https://avatars.githubusercontent.com/u/639823?v=3","gravatar_id":"","url":"https://api.github.com/users/travis-ci","html_url":"https://github.com/travis-ci","followers_url":"https://api.github.com/users/travis-ci/followers","following_url":"https://api.github.com/users/travis-ci/following{/other_user}","gists_url":"https://api.github.com/users/travis-ci/gists{/gist_id}","starred_url":"https://api.github.com/users/travis-ci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/travis-ci/subscriptions","organizations_url":"https://api.github.com/users/travis-ci/orgs","repos_url":"https://api.github.com/users/travis-ci/repos","events_url":"https://api.github.com/users/travis-ci/events{/privacy}","received_events_url":"https://api.github.com/users/travis-ci/received_events","type":"Organization","site_admin":false},"repo":{"id":27410275,"name":"worker","full_name":"travis-ci/worker","owner":{"login":"travis-ci","id":639823,"avatar_url":"https://avatars.githubusercontent.com/u/639823?v=3","gravatar_id":"","url":"https://api.github.com/users/travis-ci","html_url":"https://github.com/travis-ci","followers_url":"https://api.github.com/users/travis-ci/followers","following_url":"https://api.github.com/users/travis-ci/following{/other_user}","gists_url":"https://api.github.com/users/travis-ci/gists{/gist_id}","starred_url":"https://api.github.com/users/travis-ci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/travis-ci/subscriptions","organizations_url":"https://api.github.com/users/travis-ci/orgs","repos_url":"https://api.github.com/users/travis-ci/repos","events_url":"https://api.github.com/users/travis-ci/events{/privacy}","received_events_url":"https://api.github.com/users/travis-ci/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/travis-ci/worker","description":"Worky worky work work","fork":false,"url":"https://api.github.com/repos/travis-ci/worker","forks_url":"https://api.github.com/repos/travis-ci/worker/forks","keys_url":"https://api.github.com/repos/travis-ci/worker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/travis-ci/worker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/travis-ci/worker/teams","hooks_url":"https://api.github.com/repos/travis-ci/worker/hooks","issue_events_url":"https://api.github.com/repos/travis-ci/worker/issues/events{/number}","events_url":"https://api.github.com/repos/travis-ci/worker/events","assignees_url":"https://api.github.com/repos/travis-ci/worker/assignees{/user}","branches_url":"https://api.github.com/repos/travis-ci/worker/branches{/branch}","tags_url":"https://api.github.com/repos/travis-ci/worker/tags","blobs_url":"https://api.github.com/repos/travis-ci/worker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/travis-ci/worker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/travis-ci/worker/git/refs{/sha}","trees_url":"https://api.github.com/repos/travis-ci/worker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/travis-ci/worker/statuses/{sha}","languages_url":"https://api.github.com/repos/travis-ci/worker/languages","stargazers_url":"https://api.github.com/repos/travis-ci/worker/stargazers","contributors_url":"https://api.github.com/repos/travis-ci/worker/contributors","subscribers_url":"https://api.github.com/repos/travis-ci/worker/subscribers","subscription_url":"https://api.github.com/repos/travis-ci/worker/subscription","commits_url":"https://api.github.com/repos/travis-ci/worker/commits{/sha}","git_commits_url":"https://api.github.com/repos/travis-ci/worker/git/commits{/sha}","comments_url":"https://api.github.com/repos/travis-ci/worker/comments{/number}","issue_comment_url":"https://api.github.com/repos/travis-ci/worker/issues/comments{/number}","contents_url":"https://api.github.com/repos/travis-ci/worker/contents/{+path}","compare_url":"https://api.github.com/repos/travis-ci/worker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/travis-ci/worker/merges","archive_url":"https://api.github.com/repos/travis-ci/worker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/travis-ci/worker/downloads","issues_url":"https://api.github.com/repos/travis-ci/worker/issues{/number}","pulls_url":"https://api.github.com/repos/travis-ci/worker/pulls{/number}","milestones_url":"https://api.github.com/repos/travis-ci/worker/milestones{/number}","notifications_url":"https://api.github.com/repos/travis-ci/worker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/travis-ci/worker/labels{/name}","releases_url":"https://api.github.com/repos/travis-ci/worker/releases{/id}","created_at":"2014-12-02T02:02:55Z","updated_at":"2015-08-21T13:13:46Z","pushed_at":"2015-08-27T17:47:38Z","git_url":"git://github.com/travis-ci/worker.git","ssh_url":"git@github.com:travis-ci/worker.git","clone_url":"https://github.com/travis-ci/worker.git","svn_url":"https://github.com/travis-ci/worker","homepage":null,"size":4979,"stargazers_count":11,"watchers_count":11,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":3,"forks":2,"open_issues":3,"watchers":11,"default_branch":"master"}},"base":{"label":"travis-ci:master","ref":"master","sha":"5cecadf547a9431fbe9f26548889d35f40effa6e","user":{"login":"travis-ci","id":639823,"avatar_url":"https://avatars.githubusercontent.com/u/639823?v=3","gravatar_id":"","url":"https://api.github.com/users/travis-ci","html_url":"https://github.com/travis-ci","followers_url":"https://api.github.com/users/travis-ci/followers","following_url":"https://api.github.com/users/travis-ci/following{/other_user}","gists_url":"https://api.github.com/users/travis-ci/gists{/gist_id}","starred_url":"https://api.github.com/users/travis-ci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/travis-ci/subscriptions","organizations_url":"https://api.github.com/users/travis-ci/orgs","repos_url":"https://api.github.com/users/travis-ci/repos","events_url":"https://api.github.com/users/travis-ci/events{/privacy}","received_events_url":"https://api.github.com/users/travis-ci/received_events","type":"Organization","site_admin":false},"repo":{"id":27410275,"name":"worker","full_name":"travis-ci/worker","owner":{"login":"travis-ci","id":639823,"avatar_url":"https://avatars.githubusercontent.com/u/639823?v=3","gravatar_id":"","url":"https://api.github.com/users/travis-ci","html_url":"https://github.com/travis-ci","followers_url":"https://api.github.com/users/travis-ci/followers","following_url":"https://api.github.com/users/travis-ci/following{/other_user}","gists_url":"https://api.github.com/users/travis-ci/gists{/gist_id}","starred_url":"https://api.github.com/users/travis-ci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/travis-ci/subscriptions","organizations_url":"https://api.github.com/users/travis-ci/orgs","repos_url":"https://api.github.com/users/travis-ci/repos","events_url":"https://api.github.com/users/travis-ci/events{/privacy}","received_events_url":"https://api.github.com/users/travis-ci/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/travis-ci/worker","description":"Worky worky work work","fork":false,"url":"https://api.github.com/repos/travis-ci/worker","forks_url":"https://api.github.com/repos/travis-ci/worker/forks","keys_url":"https://api.github.com/repos/travis-ci/worker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/travis-ci/worker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/travis-ci/worker/teams","hooks_url":"https://api.github.com/repos/travis-ci/worker/hooks","issue_events_url":"https://api.github.com/repos/travis-ci/worker/issues/events{/number}","events_url":"https://api.github.com/repos/travis-ci/worker/events","assignees_url":"https://api.github.com/repos/travis-ci/worker/assignees{/user}","branches_url":"https://api.github.com/repos/travis-ci/worker/branches{/branch}","tags_url":"https://api.github.com/repos/travis-ci/worker/tags","blobs_url":"https://api.github.com/repos/travis-ci/worker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/travis-ci/worker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/travis-ci/worker/git/refs{/sha}","trees_url":"https://api.github.com/repos/travis-ci/worker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/travis-ci/worker/statuses/{sha}","languages_url":"https://api.github.com/repos/travis-ci/worker/languages","stargazers_url":"https://api.github.com/repos/travis-ci/worker/stargazers","contributors_url":"https://api.github.com/repos/travis-ci/worker/contributors","subscribers_url":"https://api.github.com/repos/travis-ci/worker/subscribers","subscription_url":"https://api.github.com/repos/travis-ci/worker/subscription","commits_url":"https://api.github.com/repos/travis-ci/worker/commits{/sha}","git_commits_url":"https://api.github.com/repos/travis-ci/worker/git/commits{/sha}","comments_url":"https://api.github.com/repos/travis-ci/worker/comments{/number}","issue_comment_url":"https://api.github.com/repos/travis-ci/worker/issues/comments{/number}","contents_url":"https://api.github.com/repos/travis-ci/worker/contents/{+path}","compare_url":"https://api.github.com/repos/travis-ci/worker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/travis-ci/worker/merges","archive_url":"https://api.github.com/repos/travis-ci/worker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/travis-ci/worker/downloads","issues_url":"https://api.github.com/repos/travis-ci/worker/issues{/number}","pulls_url":"https://api.github.com/repos/travis-ci/worker/pulls{/number}","milestones_url":"https://api.github.com/repos/travis-ci/worker/milestones{/number}","notifications_url":"https://api.github.com/repos/travis-ci/worker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/travis-ci/worker/labels{/name}","releases_url":"https://api.github.com/repos/travis-ci/worker/releases{/id}","created_at":"2014-12-02T02:02:55Z","updated_at":"2015-08-21T13:13:46Z","pushed_at":"2015-08-27T17:47:38Z","git_url":"git://github.com/travis-ci/worker.git","ssh_url":"git@github.com:travis-ci/worker.git","clone_url":"https://github.com/travis-ci/worker.git","svn_url":"https://github.com/travis-ci/worker","homepage":null,"size":4979,"stargazers_count":11,"watchers_count":11,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":3,"forks":2,"open_issues":3,"watchers":11,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/travis-ci/worker/pulls/84"},"html":{"href":"https://github.com/travis-ci/worker/pull/84"},"issue":{"href":"https://api.github.com/repos/travis-ci/worker/issues/84"},"comments":{"href":"https://api.github.com/repos/travis-ci/worker/issues/84/comments"},"review_comments":{"href":"https://api.github.com/repos/travis-ci/worker/pulls/84/comments"},"review_comment":{"href":"https://api.github.com/repos/travis-ci/worker/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/travis-ci/worker/pulls/84/commits"},"statuses":{"href":"https://api.github.com/repos/travis-ci/worker/statuses/f55e8c3f19b70711cec597fa01127e439801f0f6"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":1,"deletions":1,"changed_files":1}}