{"action":"opened","number":44,"pull_request":{"url":"https://api.github.com/repos/stitchfix/pwwka/pulls/44","id":99151664,"html_url":"https://github.com/stitchfix/pwwka/pull/44","diff_url":"https://github.com/stitchfix/pwwka/pull/44.diff","patch_url":"https://github.com/stitchfix/pwwka/pull/44.patch","issue_url":"https://api.github.com/repos/stitchfix/pwwka/issues/44","number":44,"state":"open","locked":false,"title":"crash receiver on all errors","user":{"login":"davetron5000","id":22282,"avatar_url":"https://avatars.githubusercontent.com/u/22282?v=3","gravatar_id":"","url":"https://api.github.com/users/davetron5000","html_url":"https://github.com/davetron5000","followers_url":"https://api.github.com/users/davetron5000/followers","following_url":"https://api.github.com/users/davetron5000/following{/other_user}","gists_url":"https://api.github.com/users/davetron5000/gists{/gist_id}","starred_url":"https://api.github.com/users/davetron5000/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davetron5000/subscriptions","organizations_url":"https://api.github.com/users/davetron5000/orgs","repos_url":"https://api.github.com/users/davetron5000/repos","events_url":"https://api.github.com/users/davetron5000/events{/privacy}","received_events_url":"https://api.github.com/users/davetron5000/received_events","type":"User","site_admin":false},"body":"# Problem\r\n\r\nA handler can experience a hard, unrecoverable failure that is often fixed by restarting.  An example is if a database connection goes bad.  In a typical process-based-concurrency setup, like Rails and Resque, each request starts in a fresh process and we can reset things.  The Pwwka Receiver doesn't work this way—it runs forever.  This means it can be stuck in a forever failing state.\r\n\r\n# Solution\r\n\r\nCrash on all errors.  Letting processes crash is generally good advice .  It's how Erlang does things and is generally  better than piecemeal handling of errors.  See http://stackoverflow.com/questions/4393197/erlangs-let-it-crash-philosophy-applicable-elsewhere and http://web.archive.org/web/20090430014122/http://nplus1.org/articles/a-crash-course-in-failure/\r\n\r\n## Notes\r\n\r\nThis includes a backdoor configuration to *not* do this, but this behavior is being added as the default.  Since your existing deployments have to handle crashes anyway, this should not really change things, however I could see how it's a breaking change.  I think I'm OK with that and maybe this is now time for 1.x, but since we are in 0.x land, maybe it's fine to keep going.","created_at":"2016-12-22T18:44:10Z","updated_at":"2016-12-22T18:44:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/stitchfix/pwwka/pulls/44/commits","review_comments_url":"https://api.github.com/repos/stitchfix/pwwka/pulls/44/comments","review_comment_url":"https://api.github.com/repos/stitchfix/pwwka/pulls/comments{/number}","comments_url":"https://api.github.com/repos/stitchfix/pwwka/issues/44/comments","statuses_url":"https://api.github.com/repos/stitchfix/pwwka/statuses/02ce66fcc9705e773007e47f2b5517cf7d36e700","head":{"label":"stitchfix:crash-receiver-on-errors","ref":"crash-receiver-on-errors","sha":"02ce66fcc9705e773007e47f2b5517cf7d36e700","user":{"login":"stitchfix","id":1749260,"avatar_url":"https://avatars.githubusercontent.com/u/1749260?v=3","gravatar_id":"","url":"https://api.github.com/users/stitchfix","html_url":"https://github.com/stitchfix","followers_url":"https://api.github.com/users/stitchfix/followers","following_url":"https://api.github.com/users/stitchfix/following{/other_user}","gists_url":"https://api.github.com/users/stitchfix/gists{/gist_id}","starred_url":"https://api.github.com/users/stitchfix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stitchfix/subscriptions","organizations_url":"https://api.github.com/users/stitchfix/orgs","repos_url":"https://api.github.com/users/stitchfix/repos","events_url":"https://api.github.com/users/stitchfix/events{/privacy}","received_events_url":"https://api.github.com/users/stitchfix/received_events","type":"Organization","site_admin":false},"repo":{"id":22973323,"name":"pwwka","full_name":"stitchfix/pwwka","owner":{"login":"stitchfix","id":1749260,"avatar_url":"https://avatars.githubusercontent.com/u/1749260?v=3","gravatar_id":"","url":"https://api.github.com/users/stitchfix","html_url":"https://github.com/stitchfix","followers_url":"https://api.github.com/users/stitchfix/followers","following_url":"https://api.github.com/users/stitchfix/following{/other_user}","gists_url":"https://api.github.com/users/stitchfix/gists{/gist_id}","starred_url":"https://api.github.com/users/stitchfix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stitchfix/subscriptions","organizations_url":"https://api.github.com/users/stitchfix/orgs","repos_url":"https://api.github.com/users/stitchfix/repos","events_url":"https://api.github.com/users/stitchfix/events{/privacy}","received_events_url":"https://api.github.com/users/stitchfix/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/stitchfix/pwwka","description":"Interact with RabbitMQ to transmit and receive messages in an easy low-configuration way.","fork":false,"url":"https://api.github.com/repos/stitchfix/pwwka","forks_url":"https://api.github.com/repos/stitchfix/pwwka/forks","keys_url":"https://api.github.com/repos/stitchfix/pwwka/keys{/key_id}","collaborators_url":"https://api.github.com/repos/stitchfix/pwwka/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/stitchfix/pwwka/teams","hooks_url":"https://api.github.com/repos/stitchfix/pwwka/hooks","issue_events_url":"https://api.github.com/repos/stitchfix/pwwka/issues/events{/number}","events_url":"https://api.github.com/repos/stitchfix/pwwka/events","assignees_url":"https://api.github.com/repos/stitchfix/pwwka/assignees{/user}","branches_url":"https://api.github.com/repos/stitchfix/pwwka/branches{/branch}","tags_url":"https://api.github.com/repos/stitchfix/pwwka/tags","blobs_url":"https://api.github.com/repos/stitchfix/pwwka/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/stitchfix/pwwka/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/stitchfix/pwwka/git/refs{/sha}","trees_url":"https://api.github.com/repos/stitchfix/pwwka/git/trees{/sha}","statuses_url":"https://api.github.com/repos/stitchfix/pwwka/statuses/{sha}","languages_url":"https://api.github.com/repos/stitchfix/pwwka/languages","stargazers_url":"https://api.github.com/repos/stitchfix/pwwka/stargazers","contributors_url":"https://api.github.com/repos/stitchfix/pwwka/contributors","subscribers_url":"https://api.github.com/repos/stitchfix/pwwka/subscribers","subscription_url":"https://api.github.com/repos/stitchfix/pwwka/subscription","commits_url":"https://api.github.com/repos/stitchfix/pwwka/commits{/sha}","git_commits_url":"https://api.github.com/repos/stitchfix/pwwka/git/commits{/sha}","comments_url":"https://api.github.com/repos/stitchfix/pwwka/comments{/number}","issue_comment_url":"https://api.github.com/repos/stitchfix/pwwka/issues/comments{/number}","contents_url":"https://api.github.com/repos/stitchfix/pwwka/contents/{+path}","compare_url":"https://api.github.com/repos/stitchfix/pwwka/compare/{base}...{head}","merges_url":"https://api.github.com/repos/stitchfix/pwwka/merges","archive_url":"https://api.github.com/repos/stitchfix/pwwka/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/stitchfix/pwwka/downloads","issues_url":"https://api.github.com/repos/stitchfix/pwwka/issues{/number}","pulls_url":"https://api.github.com/repos/stitchfix/pwwka/pulls{/number}","milestones_url":"https://api.github.com/repos/stitchfix/pwwka/milestones{/number}","notifications_url":"https://api.github.com/repos/stitchfix/pwwka/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/stitchfix/pwwka/labels{/name}","releases_url":"https://api.github.com/repos/stitchfix/pwwka/releases{/id}","deployments_url":"https://api.github.com/repos/stitchfix/pwwka/deployments","created_at":"2014-08-15T00:45:29Z","updated_at":"2016-12-16T18:49:49Z","pushed_at":"2016-12-22T16:58:56Z","git_url":"git://github.com/stitchfix/pwwka.git","ssh_url":"git@github.com:stitchfix/pwwka.git","clone_url":"https://github.com/stitchfix/pwwka.git","svn_url":"https://github.com/stitchfix/pwwka","homepage":"","size":319,"stargazers_count":8,"watchers_count":8,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":6,"forks":3,"open_issues":6,"watchers":8,"default_branch":"master"}},"base":{"label":"stitchfix:master","ref":"master","sha":"2eca87a7c2fef5c3ab5807495d6e0bf6b19537c6","user":{"login":"stitchfix","id":1749260,"avatar_url":"https://avatars.githubusercontent.com/u/1749260?v=3","gravatar_id":"","url":"https://api.github.com/users/stitchfix","html_url":"https://github.com/stitchfix","followers_url":"https://api.github.com/users/stitchfix/followers","following_url":"https://api.github.com/users/stitchfix/following{/other_user}","gists_url":"https://api.github.com/users/stitchfix/gists{/gist_id}","starred_url":"https://api.github.com/users/stitchfix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stitchfix/subscriptions","organizations_url":"https://api.github.com/users/stitchfix/orgs","repos_url":"https://api.github.com/users/stitchfix/repos","events_url":"https://api.github.com/users/stitchfix/events{/privacy}","received_events_url":"https://api.github.com/users/stitchfix/received_events","type":"Organization","site_admin":false},"repo":{"id":22973323,"name":"pwwka","full_name":"stitchfix/pwwka","owner":{"login":"stitchfix","id":1749260,"avatar_url":"https://avatars.githubusercontent.com/u/1749260?v=3","gravatar_id":"","url":"https://api.github.com/users/stitchfix","html_url":"https://github.com/stitchfix","followers_url":"https://api.github.com/users/stitchfix/followers","following_url":"https://api.github.com/users/stitchfix/following{/other_user}","gists_url":"https://api.github.com/users/stitchfix/gists{/gist_id}","starred_url":"https://api.github.com/users/stitchfix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stitchfix/subscriptions","organizations_url":"https://api.github.com/users/stitchfix/orgs","repos_url":"https://api.github.com/users/stitchfix/repos","events_url":"https://api.github.com/users/stitchfix/events{/privacy}","received_events_url":"https://api.github.com/users/stitchfix/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/stitchfix/pwwka","description":"Interact with RabbitMQ to transmit and receive messages in an easy low-configuration way.","fork":false,"url":"https://api.github.com/repos/stitchfix/pwwka","forks_url":"https://api.github.com/repos/stitchfix/pwwka/forks","keys_url":"https://api.github.com/repos/stitchfix/pwwka/keys{/key_id}","collaborators_url":"https://api.github.com/repos/stitchfix/pwwka/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/stitchfix/pwwka/teams","hooks_url":"https://api.github.com/repos/stitchfix/pwwka/hooks","issue_events_url":"https://api.github.com/repos/stitchfix/pwwka/issues/events{/number}","events_url":"https://api.github.com/repos/stitchfix/pwwka/events","assignees_url":"https://api.github.com/repos/stitchfix/pwwka/assignees{/user}","branches_url":"https://api.github.com/repos/stitchfix/pwwka/branches{/branch}","tags_url":"https://api.github.com/repos/stitchfix/pwwka/tags","blobs_url":"https://api.github.com/repos/stitchfix/pwwka/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/stitchfix/pwwka/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/stitchfix/pwwka/git/refs{/sha}","trees_url":"https://api.github.com/repos/stitchfix/pwwka/git/trees{/sha}","statuses_url":"https://api.github.com/repos/stitchfix/pwwka/statuses/{sha}","languages_url":"https://api.github.com/repos/stitchfix/pwwka/languages","stargazers_url":"https://api.github.com/repos/stitchfix/pwwka/stargazers","contributors_url":"https://api.github.com/repos/stitchfix/pwwka/contributors","subscribers_url":"https://api.github.com/repos/stitchfix/pwwka/subscribers","subscription_url":"https://api.github.com/repos/stitchfix/pwwka/subscription","commits_url":"https://api.github.com/repos/stitchfix/pwwka/commits{/sha}","git_commits_url":"https://api.github.com/repos/stitchfix/pwwka/git/commits{/sha}","comments_url":"https://api.github.com/repos/stitchfix/pwwka/comments{/number}","issue_comment_url":"https://api.github.com/repos/stitchfix/pwwka/issues/comments{/number}","contents_url":"https://api.github.com/repos/stitchfix/pwwka/contents/{+path}","compare_url":"https://api.github.com/repos/stitchfix/pwwka/compare/{base}...{head}","merges_url":"https://api.github.com/repos/stitchfix/pwwka/merges","archive_url":"https://api.github.com/repos/stitchfix/pwwka/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/stitchfix/pwwka/downloads","issues_url":"https://api.github.com/repos/stitchfix/pwwka/issues{/number}","pulls_url":"https://api.github.com/repos/stitchfix/pwwka/pulls{/number}","milestones_url":"https://api.github.com/repos/stitchfix/pwwka/milestones{/number}","notifications_url":"https://api.github.com/repos/stitchfix/pwwka/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/stitchfix/pwwka/labels{/name}","releases_url":"https://api.github.com/repos/stitchfix/pwwka/releases{/id}","deployments_url":"https://api.github.com/repos/stitchfix/pwwka/deployments","created_at":"2014-08-15T00:45:29Z","updated_at":"2016-12-16T18:49:49Z","pushed_at":"2016-12-22T16:58:56Z","git_url":"git://github.com/stitchfix/pwwka.git","ssh_url":"git@github.com:stitchfix/pwwka.git","clone_url":"https://github.com/stitchfix/pwwka.git","svn_url":"https://github.com/stitchfix/pwwka","homepage":"","size":319,"stargazers_count":8,"watchers_count":8,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":6,"forks":3,"open_issues":6,"watchers":8,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/stitchfix/pwwka/pulls/44"},"html":{"href":"https://github.com/stitchfix/pwwka/pull/44"},"issue":{"href":"https://api.github.com/repos/stitchfix/pwwka/issues/44"},"comments":{"href":"https://api.github.com/repos/stitchfix/pwwka/issues/44/comments"},"review_comments":{"href":"https://api.github.com/repos/stitchfix/pwwka/pulls/44/comments"},"review_comment":{"href":"https://api.github.com/repos/stitchfix/pwwka/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/stitchfix/pwwka/pulls/44/commits"},"statuses":{"href":"https://api.github.com/repos/stitchfix/pwwka/statuses/02ce66fcc9705e773007e47f2b5517cf7d36e700"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":98,"deletions":28,"changed_files":5}}
{"actor":{"display_login":"davetron5000"}}