{"action":"opened","number":607,"pull_request":{"url":"https://api.github.com/repos/fedora-infra/bodhi/pulls/607","id":45946687,"html_url":"https://github.com/fedora-infra/bodhi/pull/607","diff_url":"https://github.com/fedora-infra/bodhi/pull/607.diff","patch_url":"https://github.com/fedora-infra/bodhi/pull/607.patch","issue_url":"https://api.github.com/repos/fedora-infra/bodhi/issues/607","number":607,"state":"open","locked":false,"title":"initialize fedmsg off of the main thread.","user":{"login":"ralphbean","id":331338,"avatar_url":"https://avatars.githubusercontent.com/u/331338?v=3","gravatar_id":"","url":"https://api.github.com/users/ralphbean","html_url":"https://github.com/ralphbean","followers_url":"https://api.github.com/users/ralphbean/followers","following_url":"https://api.github.com/users/ralphbean/following{/other_user}","gists_url":"https://api.github.com/users/ralphbean/gists{/gist_id}","starred_url":"https://api.github.com/users/ralphbean/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ralphbean/subscriptions","organizations_url":"https://api.github.com/users/ralphbean/orgs","repos_url":"https://api.github.com/users/ralphbean/repos","events_url":"https://api.github.com/users/ralphbean/events{/privacy}","received_events_url":"https://api.github.com/users/ralphbean/received_events","type":"User","site_admin":false},"body":"we're getting tracebacks in production from the mod_wsgi sub-interpreters.\n\n- we used to manually initialize fedmsg on the main thread in ``main()``.\n- the child threads however would just secretly re-initialize themselves under\n  the hood when .publish was called.  this worked fine for a long time and we\n  had no idea.\n- it only became a problem when we added code that checked to see if we were\n  explicitly initialized before we published.  then the child threads all\n  crashed at this point.\n- this now *explicitly* initializes all threads whenever they call publish for\n  the first time.\n- it also removes the red herring initialization from ``main()``.","created_at":"2015-09-24T20:38:22Z","updated_at":"2015-09-24T20:38:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/fedora-infra/bodhi/pulls/607/commits","review_comments_url":"https://api.github.com/repos/fedora-infra/bodhi/pulls/607/comments","review_comment_url":"https://api.github.com/repos/fedora-infra/bodhi/pulls/comments{/number}","comments_url":"https://api.github.com/repos/fedora-infra/bodhi/issues/607/comments","statuses_url":"https://api.github.com/repos/fedora-infra/bodhi/statuses/a9fdfc832707c8eb34615e46184d8291332d71f2","head":{"label":"fedora-infra:feature/initialize-off-main-thread","ref":"feature/initialize-off-main-thread","sha":"a9fdfc832707c8eb34615e46184d8291332d71f2","user":{"login":"fedora-infra","id":3316637,"avatar_url":"https://avatars.githubusercontent.com/u/3316637?v=3","gravatar_id":"","url":"https://api.github.com/users/fedora-infra","html_url":"https://github.com/fedora-infra","followers_url":"https://api.github.com/users/fedora-infra/followers","following_url":"https://api.github.com/users/fedora-infra/following{/other_user}","gists_url":"https://api.github.com/users/fedora-infra/gists{/gist_id}","starred_url":"https://api.github.com/users/fedora-infra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fedora-infra/subscriptions","organizations_url":"https://api.github.com/users/fedora-infra/orgs","repos_url":"https://api.github.com/users/fedora-infra/repos","events_url":"https://api.github.com/users/fedora-infra/events{/privacy}","received_events_url":"https://api.github.com/users/fedora-infra/received_events","type":"Organization","site_admin":false},"repo":{"id":123299,"name":"bodhi","full_name":"fedora-infra/bodhi","owner":{"login":"fedora-infra","id":3316637,"avatar_url":"https://avatars.githubusercontent.com/u/3316637?v=3","gravatar_id":"","url":"https://api.github.com/users/fedora-infra","html_url":"https://github.com/fedora-infra","followers_url":"https://api.github.com/users/fedora-infra/followers","following_url":"https://api.github.com/users/fedora-infra/following{/other_user}","gists_url":"https://api.github.com/users/fedora-infra/gists{/gist_id}","starred_url":"https://api.github.com/users/fedora-infra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fedora-infra/subscriptions","organizations_url":"https://api.github.com/users/fedora-infra/orgs","repos_url":"https://api.github.com/users/fedora-infra/repos","events_url":"https://api.github.com/users/fedora-infra/events{/privacy}","received_events_url":"https://api.github.com/users/fedora-infra/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/fedora-infra/bodhi","description":"Bodhi is a web-system that facilitates the process of publishing updates for a Fedora-based software distribution.","fork":false,"url":"https://api.github.com/repos/fedora-infra/bodhi","forks_url":"https://api.github.com/repos/fedora-infra/bodhi/forks","keys_url":"https://api.github.com/repos/fedora-infra/bodhi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fedora-infra/bodhi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fedora-infra/bodhi/teams","hooks_url":"https://api.github.com/repos/fedora-infra/bodhi/hooks","issue_events_url":"https://api.github.com/repos/fedora-infra/bodhi/issues/events{/number}","events_url":"https://api.github.com/repos/fedora-infra/bodhi/events","assignees_url":"https://api.github.com/repos/fedora-infra/bodhi/assignees{/user}","branches_url":"https://api.github.com/repos/fedora-infra/bodhi/branches{/branch}","tags_url":"https://api.github.com/repos/fedora-infra/bodhi/tags","blobs_url":"https://api.github.com/repos/fedora-infra/bodhi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fedora-infra/bodhi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fedora-infra/bodhi/git/refs{/sha}","trees_url":"https://api.github.com/repos/fedora-infra/bodhi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fedora-infra/bodhi/statuses/{sha}","languages_url":"https://api.github.com/repos/fedora-infra/bodhi/languages","stargazers_url":"https://api.github.com/repos/fedora-infra/bodhi/stargazers","contributors_url":"https://api.github.com/repos/fedora-infra/bodhi/contributors","subscribers_url":"https://api.github.com/repos/fedora-infra/bodhi/subscribers","subscription_url":"https://api.github.com/repos/fedora-infra/bodhi/subscription","commits_url":"https://api.github.com/repos/fedora-infra/bodhi/commits{/sha}","git_commits_url":"https://api.github.com/repos/fedora-infra/bodhi/git/commits{/sha}","comments_url":"https://api.github.com/repos/fedora-infra/bodhi/comments{/number}","issue_comment_url":"https://api.github.com/repos/fedora-infra/bodhi/issues/comments{/number}","contents_url":"https://api.github.com/repos/fedora-infra/bodhi/contents/{+path}","compare_url":"https://api.github.com/repos/fedora-infra/bodhi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fedora-infra/bodhi/merges","archive_url":"https://api.github.com/repos/fedora-infra/bodhi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fedora-infra/bodhi/downloads","issues_url":"https://api.github.com/repos/fedora-infra/bodhi/issues{/number}","pulls_url":"https://api.github.com/repos/fedora-infra/bodhi/pulls{/number}","milestones_url":"https://api.github.com/repos/fedora-infra/bodhi/milestones{/number}","notifications_url":"https://api.github.com/repos/fedora-infra/bodhi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fedora-infra/bodhi/labels{/name}","releases_url":"https://api.github.com/repos/fedora-infra/bodhi/releases{/id}","created_at":"2009-02-06T19:38:10Z","updated_at":"2015-09-14T03:45:37Z","pushed_at":"2015-09-24T20:37:48Z","git_url":"git://github.com/fedora-infra/bodhi.git","ssh_url":"git@github.com:fedora-infra/bodhi.git","clone_url":"https://github.com/fedora-infra/bodhi.git","svn_url":"https://github.com/fedora-infra/bodhi","homepage":"http://bodhi.fedorahosted.org","size":38043,"stargazers_count":17,"watchers_count":17,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":32,"mirror_url":null,"open_issues_count":91,"forks":32,"open_issues":91,"watchers":17,"default_branch":"develop"}},"base":{"label":"fedora-infra:develop","ref":"develop","sha":"9ee5244daa7e7c2c88b99d55a5dbdcb9084f622d","user":{"login":"fedora-infra","id":3316637,"avatar_url":"https://avatars.githubusercontent.com/u/3316637?v=3","gravatar_id":"","url":"https://api.github.com/users/fedora-infra","html_url":"https://github.com/fedora-infra","followers_url":"https://api.github.com/users/fedora-infra/followers","following_url":"https://api.github.com/users/fedora-infra/following{/other_user}","gists_url":"https://api.github.com/users/fedora-infra/gists{/gist_id}","starred_url":"https://api.github.com/users/fedora-infra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fedora-infra/subscriptions","organizations_url":"https://api.github.com/users/fedora-infra/orgs","repos_url":"https://api.github.com/users/fedora-infra/repos","events_url":"https://api.github.com/users/fedora-infra/events{/privacy}","received_events_url":"https://api.github.com/users/fedora-infra/received_events","type":"Organization","site_admin":false},"repo":{"id":123299,"name":"bodhi","full_name":"fedora-infra/bodhi","owner":{"login":"fedora-infra","id":3316637,"avatar_url":"https://avatars.githubusercontent.com/u/3316637?v=3","gravatar_id":"","url":"https://api.github.com/users/fedora-infra","html_url":"https://github.com/fedora-infra","followers_url":"https://api.github.com/users/fedora-infra/followers","following_url":"https://api.github.com/users/fedora-infra/following{/other_user}","gists_url":"https://api.github.com/users/fedora-infra/gists{/gist_id}","starred_url":"https://api.github.com/users/fedora-infra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fedora-infra/subscriptions","organizations_url":"https://api.github.com/users/fedora-infra/orgs","repos_url":"https://api.github.com/users/fedora-infra/repos","events_url":"https://api.github.com/users/fedora-infra/events{/privacy}","received_events_url":"https://api.github.com/users/fedora-infra/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/fedora-infra/bodhi","description":"Bodhi is a web-system that facilitates the process of publishing updates for a Fedora-based software distribution.","fork":false,"url":"https://api.github.com/repos/fedora-infra/bodhi","forks_url":"https://api.github.com/repos/fedora-infra/bodhi/forks","keys_url":"https://api.github.com/repos/fedora-infra/bodhi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fedora-infra/bodhi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fedora-infra/bodhi/teams","hooks_url":"https://api.github.com/repos/fedora-infra/bodhi/hooks","issue_events_url":"https://api.github.com/repos/fedora-infra/bodhi/issues/events{/number}","events_url":"https://api.github.com/repos/fedora-infra/bodhi/events","assignees_url":"https://api.github.com/repos/fedora-infra/bodhi/assignees{/user}","branches_url":"https://api.github.com/repos/fedora-infra/bodhi/branches{/branch}","tags_url":"https://api.github.com/repos/fedora-infra/bodhi/tags","blobs_url":"https://api.github.com/repos/fedora-infra/bodhi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fedora-infra/bodhi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fedora-infra/bodhi/git/refs{/sha}","trees_url":"https://api.github.com/repos/fedora-infra/bodhi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fedora-infra/bodhi/statuses/{sha}","languages_url":"https://api.github.com/repos/fedora-infra/bodhi/languages","stargazers_url":"https://api.github.com/repos/fedora-infra/bodhi/stargazers","contributors_url":"https://api.github.com/repos/fedora-infra/bodhi/contributors","subscribers_url":"https://api.github.com/repos/fedora-infra/bodhi/subscribers","subscription_url":"https://api.github.com/repos/fedora-infra/bodhi/subscription","commits_url":"https://api.github.com/repos/fedora-infra/bodhi/commits{/sha}","git_commits_url":"https://api.github.com/repos/fedora-infra/bodhi/git/commits{/sha}","comments_url":"https://api.github.com/repos/fedora-infra/bodhi/comments{/number}","issue_comment_url":"https://api.github.com/repos/fedora-infra/bodhi/issues/comments{/number}","contents_url":"https://api.github.com/repos/fedora-infra/bodhi/contents/{+path}","compare_url":"https://api.github.com/repos/fedora-infra/bodhi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fedora-infra/bodhi/merges","archive_url":"https://api.github.com/repos/fedora-infra/bodhi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fedora-infra/bodhi/downloads","issues_url":"https://api.github.com/repos/fedora-infra/bodhi/issues{/number}","pulls_url":"https://api.github.com/repos/fedora-infra/bodhi/pulls{/number}","milestones_url":"https://api.github.com/repos/fedora-infra/bodhi/milestones{/number}","notifications_url":"https://api.github.com/repos/fedora-infra/bodhi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fedora-infra/bodhi/labels{/name}","releases_url":"https://api.github.com/repos/fedora-infra/bodhi/releases{/id}","created_at":"2009-02-06T19:38:10Z","updated_at":"2015-09-14T03:45:37Z","pushed_at":"2015-09-24T20:37:48Z","git_url":"git://github.com/fedora-infra/bodhi.git","ssh_url":"git@github.com:fedora-infra/bodhi.git","clone_url":"https://github.com/fedora-infra/bodhi.git","svn_url":"https://github.com/fedora-infra/bodhi","homepage":"http://bodhi.fedorahosted.org","size":38043,"stargazers_count":17,"watchers_count":17,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":32,"mirror_url":null,"open_issues_count":91,"forks":32,"open_issues":91,"watchers":17,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/fedora-infra/bodhi/pulls/607"},"html":{"href":"https://github.com/fedora-infra/bodhi/pull/607"},"issue":{"href":"https://api.github.com/repos/fedora-infra/bodhi/issues/607"},"comments":{"href":"https://api.github.com/repos/fedora-infra/bodhi/issues/607/comments"},"review_comments":{"href":"https://api.github.com/repos/fedora-infra/bodhi/pulls/607/comments"},"review_comment":{"href":"https://api.github.com/repos/fedora-infra/bodhi/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/fedora-infra/bodhi/pulls/607/commits"},"statuses":{"href":"https://api.github.com/repos/fedora-infra/bodhi/statuses/a9fdfc832707c8eb34615e46184d8291332d71f2"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":18,"deletions":9,"changed_files":2}}