{"action":"created","issue":{"url":"https://api.github.com/repos/cms-sw/cmssw/issues/18683","repository_url":"https://api.github.com/repos/cms-sw/cmssw","labels_url":"https://api.github.com/repos/cms-sw/cmssw/issues/18683/labels{/name}","comments_url":"https://api.github.com/repos/cms-sw/cmssw/issues/18683/comments","events_url":"https://api.github.com/repos/cms-sw/cmssw/issues/18683/events","html_url":"https://github.com/cms-sw/cmssw/pull/18683","id":227807034,"number":18683,"title":"Release the Python GIL when running PythonEventProcessor.","user":{"login":"jpivarski","id":1852447,"avatar_url":"https://avatars3.githubusercontent.com/u/1852447?v=3","gravatar_id":"","url":"https://api.github.com/users/jpivarski","html_url":"https://github.com/jpivarski","followers_url":"https://api.github.com/users/jpivarski/followers","following_url":"https://api.github.com/users/jpivarski/following{/other_user}","gists_url":"https://api.github.com/users/jpivarski/gists{/gist_id}","starred_url":"https://api.github.com/users/jpivarski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jpivarski/subscriptions","organizations_url":"https://api.github.com/users/jpivarski/orgs","repos_url":"https://api.github.com/users/jpivarski/repos","events_url":"https://api.github.com/users/jpivarski/events{/privacy}","received_events_url":"https://api.github.com/users/jpivarski/received_events","type":"User","site_admin":false},"labels":[{"id":88653795,"url":"https://api.github.com/repos/cms-sw/cmssw/labels/comparison-pending","name":"comparison-pending","color":"fbca04","default":false},{"id":52822606,"url":"https://api.github.com/repos/cms-sw/cmssw/labels/core-pending","name":"core-pending","color":"fbca04","default":false},{"id":56953091,"url":"https://api.github.com/repos/cms-sw/cmssw/labels/orp-pending","name":"orp-pending","color":"fbca04","default":false},{"id":53167770,"url":"https://api.github.com/repos/cms-sw/cmssw/labels/pending-signatures","name":"pending-signatures","color":"eb6420","default":false},{"id":170521617,"url":"https://api.github.com/repos/cms-sw/cmssw/labels/tests-started","name":"tests-started","color":"eb6420","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/cms-sw/cmssw/milestones/66","html_url":"https://github.com/cms-sw/cmssw/milestone/66","labels_url":"https://api.github.com/repos/cms-sw/cmssw/milestones/66/labels","id":2497352,"number":66,"title":"CMSSW_9_2_X","description":"","creator":{"login":"smuzaffar","id":4115138,"avatar_url":"https://avatars0.githubusercontent.com/u/4115138?v=3","gravatar_id":"","url":"https://api.github.com/users/smuzaffar","html_url":"https://github.com/smuzaffar","followers_url":"https://api.github.com/users/smuzaffar/followers","following_url":"https://api.github.com/users/smuzaffar/following{/other_user}","gists_url":"https://api.github.com/users/smuzaffar/gists{/gist_id}","starred_url":"https://api.github.com/users/smuzaffar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smuzaffar/subscriptions","organizations_url":"https://api.github.com/users/smuzaffar/orgs","repos_url":"https://api.github.com/users/smuzaffar/repos","events_url":"https://api.github.com/users/smuzaffar/events{/privacy}","received_events_url":"https://api.github.com/users/smuzaffar/received_events","type":"User","site_admin":false},"open_issues":73,"closed_issues":61,"state":"open","created_at":"2017-05-03T13:18:43Z","updated_at":"2017-05-10T20:52:49Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2017-05-10T20:52:35Z","updated_at":"2017-05-10T22:14:49Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/cms-sw/cmssw/pulls/18683","html_url":"https://github.com/cms-sw/cmssw/pull/18683","diff_url":"https://github.com/cms-sw/cmssw/pull/18683.diff","patch_url":"https://github.com/cms-sw/cmssw/pull/18683.patch"},"body":"The `.run()` method is blocking, so one might want to put it into a Python `threading.Thread`. However, the Python interpreter would still block because of the GIL. This correction releases the GIL so that CMSSW can run while Python is running.\r\n\r\nTested on a simple example: observed concurrent execution and no segmentation faults.\r\n"},"comment":{"url":"https://api.github.com/repos/cms-sw/cmssw/issues/comments/300628414","html_url":"https://github.com/cms-sw/cmssw/pull/18683#issuecomment-300628414","issue_url":"https://api.github.com/repos/cms-sw/cmssw/issues/18683","id":300628414,"user":{"login":"cmsbuild","id":4170616,"avatar_url":"https://avatars2.githubusercontent.com/u/4170616?v=3","gravatar_id":"","url":"https://api.github.com/users/cmsbuild","html_url":"https://github.com/cmsbuild","followers_url":"https://api.github.com/users/cmsbuild/followers","following_url":"https://api.github.com/users/cmsbuild/following{/other_user}","gists_url":"https://api.github.com/users/cmsbuild/gists{/gist_id}","starred_url":"https://api.github.com/users/cmsbuild/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmsbuild/subscriptions","organizations_url":"https://api.github.com/users/cmsbuild/orgs","repos_url":"https://api.github.com/users/cmsbuild/repos","events_url":"https://api.github.com/users/cmsbuild/events{/privacy}","received_events_url":"https://api.github.com/users/cmsbuild/received_events","type":"User","site_admin":false},"created_at":"2017-05-10T22:14:49Z","updated_at":"2017-05-10T22:14:49Z","body":"Comparison job queued."}}
{"actor":{"display_login":"cmsbuild"}}