{"action":"created","issue":{"url":"https://api.github.com/repos/Parsely/pykafka/issues/503","repository_url":"https://api.github.com/repos/Parsely/pykafka","labels_url":"https://api.github.com/repos/Parsely/pykafka/issues/503/labels{/name}","comments_url":"https://api.github.com/repos/Parsely/pykafka/issues/503/comments","events_url":"https://api.github.com/repos/Parsely/pykafka/issues/503/events","html_url":"https://github.com/Parsely/pykafka/pull/503","id":141123472,"number":503,"title":"don't explode worker thread during interpreter shutdown","user":{"login":"emmett9001","id":723615,"avatar_url":"https://avatars.githubusercontent.com/u/723615?v=3","gravatar_id":"","url":"https://api.github.com/users/emmett9001","html_url":"https://github.com/emmett9001","followers_url":"https://api.github.com/users/emmett9001/followers","following_url":"https://api.github.com/users/emmett9001/following{/other_user}","gists_url":"https://api.github.com/users/emmett9001/gists{/gist_id}","starred_url":"https://api.github.com/users/emmett9001/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emmett9001/subscriptions","organizations_url":"https://api.github.com/users/emmett9001/orgs","repos_url":"https://api.github.com/users/emmett9001/repos","events_url":"https://api.github.com/users/emmett9001/events{/privacy}","received_events_url":"https://api.github.com/users/emmett9001/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Parsely/pykafka/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":{"login":"emmett9001","id":723615,"avatar_url":"https://avatars.githubusercontent.com/u/723615?v=3","gravatar_id":"","url":"https://api.github.com/users/emmett9001","html_url":"https://github.com/emmett9001","followers_url":"https://api.github.com/users/emmett9001/followers","following_url":"https://api.github.com/users/emmett9001/following{/other_user}","gists_url":"https://api.github.com/users/emmett9001/gists{/gist_id}","starred_url":"https://api.github.com/users/emmett9001/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emmett9001/subscriptions","organizations_url":"https://api.github.com/users/emmett9001/orgs","repos_url":"https://api.github.com/users/emmett9001/repos","events_url":"https://api.github.com/users/emmett9001/events{/privacy}","received_events_url":"https://api.github.com/users/emmett9001/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2016-03-15T23:02:50Z","updated_at":"2016-05-18T18:21:42Z","closed_at":"2016-03-22T16:21:28Z","pull_request":{"url":"https://api.github.com/repos/Parsely/pykafka/pulls/503","html_url":"https://github.com/Parsely/pykafka/pull/503","diff_url":"https://github.com/Parsely/pykafka/pull/503.diff","patch_url":"https://github.com/Parsely/pykafka/pull/503.patch"},"body":"This pull request catches the `Queue` exception that can occur if some requests are still in flight after interpreter shutdown. The nicer way to fix this would be to ensure that it never happens in the first place, but this handler is a good fallback whether or not we decide to do that.\r\n\r\nFixes #399"},"comment":{"url":"https://api.github.com/repos/Parsely/pykafka/issues/comments/220114593","html_url":"https://github.com/Parsely/pykafka/pull/503#issuecomment-220114593","issue_url":"https://api.github.com/repos/Parsely/pykafka/issues/503","id":220114593,"user":{"login":"emmett9001","id":723615,"avatar_url":"https://avatars.githubusercontent.com/u/723615?v=3","gravatar_id":"","url":"https://api.github.com/users/emmett9001","html_url":"https://github.com/emmett9001","followers_url":"https://api.github.com/users/emmett9001/followers","following_url":"https://api.github.com/users/emmett9001/following{/other_user}","gists_url":"https://api.github.com/users/emmett9001/gists{/gist_id}","starred_url":"https://api.github.com/users/emmett9001/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emmett9001/subscriptions","organizations_url":"https://api.github.com/users/emmett9001/orgs","repos_url":"https://api.github.com/users/emmett9001/repos","events_url":"https://api.github.com/users/emmett9001/events{/privacy}","received_events_url":"https://api.github.com/users/emmett9001/received_events","type":"User","site_admin":false},"created_at":"2016-05-18T18:21:42Z","updated_at":"2016-05-18T18:21:42Z","body":"I wouldn't be surprised. The python interpreter shutdown process is more complicated than I probably realize. Maybe this is some race condition affected by the relative garbage collection times of the exception handling mechanism and the thread."}}