{"action":"created","issue":{"url":"https://api.github.com/repos/cms-sw/cmssw/issues/22635","repository_url":"https://api.github.com/repos/cms-sw/cmssw","labels_url":"https://api.github.com/repos/cms-sw/cmssw/issues/22635/labels{/name}","comments_url":"https://api.github.com/repos/cms-sw/cmssw/issues/22635/comments","events_url":"https://api.github.com/repos/cms-sw/cmssw/issues/22635/events","html_url":"https://github.com/cms-sw/cmssw/issues/22635","id":305591975,"number":22635,"title":"Signal to external worker that the system is shutting down","user":{"login":"Dr15Jones","id":3757616,"avatar_url":"https://avatars2.githubusercontent.com/u/3757616?v=4","gravatar_id":"","url":"https://api.github.com/users/Dr15Jones","html_url":"https://github.com/Dr15Jones","followers_url":"https://api.github.com/users/Dr15Jones/followers","following_url":"https://api.github.com/users/Dr15Jones/following{/other_user}","gists_url":"https://api.github.com/users/Dr15Jones/gists{/gist_id}","starred_url":"https://api.github.com/users/Dr15Jones/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dr15Jones/subscriptions","organizations_url":"https://api.github.com/users/Dr15Jones/orgs","repos_url":"https://api.github.com/users/Dr15Jones/repos","events_url":"https://api.github.com/users/Dr15Jones/events{/privacy}","received_events_url":"https://api.github.com/users/Dr15Jones/received_events","type":"User","site_admin":false},"labels":[{"id":290515077,"url":"https://api.github.com/repos/cms-sw/cmssw/labels/pending-assignment","name":"pending-assignment","color":"ff8000","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-03-15T15:07:07Z","updated_at":"2018-03-15T15:07:47Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"The `ExternalWork` mechanism of the framework allows a EDProducer's event processing to be split into two phases: acquire and produce. As part of the acquire, a callback mechanism is handed to some 'external worker'. Some of these 'external workers' may wait to start working until they've accumulated data from multiple events. We need a way to signal to these 'external workers' that they need to run with what they have and not wait any further because they will not be getting any further events (at least no further events until they have finished those events). This avoids causing a deadlock when\r\n\r\n- a fatal exception has occurred and the system is shutting down so no futher events will be processed. The system will be stuck waiting at the global end Luminosity block since some end stream LuminosityBlocks can not run because the stream is still waiting for the event to finish\r\n- we hit the end of LuminosityBlock and we only allow one concurrent LuminosityBlock or we have module types in the system which prohibit running concurrent LuminosityBlocks.\r\n\r\nNOTE: in principal, the 'external worker' could use a timer to decide when to run but a generalized system would allow better behavior."},"comment":{"url":"https://api.github.com/repos/cms-sw/cmssw/issues/comments/373408969","html_url":"https://github.com/cms-sw/cmssw/issues/22635#issuecomment-373408969","issue_url":"https://api.github.com/repos/cms-sw/cmssw/issues/22635","id":373408969,"user":{"login":"cmsbuild","id":4170616,"avatar_url":"https://avatars1.githubusercontent.com/u/4170616?v=4","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":"2018-03-15T15:07:47Z","updated_at":"2018-03-15T15:07:47Z","author_association":"CONTRIBUTOR","body":"New categories assigned: core\n\n@Dr15Jones,@smuzaffar you have been requested to review this Pull request/Issue and eventually sign? Thanks"}}
{"actor":{"display_login":"cmsbuild"}}