{"action":"created","issue":{"url":"https://api.github.com/repos/superdesk/superdesk-core/issues/100","labels_url":"https://api.github.com/repos/superdesk/superdesk-core/issues/100/labels{/name}","comments_url":"https://api.github.com/repos/superdesk/superdesk-core/issues/100/comments","events_url":"https://api.github.com/repos/superdesk/superdesk-core/issues/100/events","html_url":"https://github.com/superdesk/superdesk-core/pull/100","id":121045619,"number":100,"title":"notification: create a new event loop for send_message","user":{"login":"vied12","id":180617,"avatar_url":"https://avatars.githubusercontent.com/u/180617?v=3","gravatar_id":"","url":"https://api.github.com/users/vied12","html_url":"https://github.com/vied12","followers_url":"https://api.github.com/users/vied12/followers","following_url":"https://api.github.com/users/vied12/following{/other_user}","gists_url":"https://api.github.com/users/vied12/gists{/gist_id}","starred_url":"https://api.github.com/users/vied12/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vied12/subscriptions","organizations_url":"https://api.github.com/users/vied12/orgs","repos_url":"https://api.github.com/users/vied12/repos","events_url":"https://api.github.com/users/vied12/events{/privacy}","received_events_url":"https://api.github.com/users/vied12/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/superdesk/superdesk-core/labels/NEED%20REVIEW","name":"NEED REVIEW","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-12-08T16:32:19Z","updated_at":"2015-12-15T13:32:37Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/superdesk/superdesk-core/pulls/100","html_url":"https://github.com/superdesk/superdesk-core/pull/100","diff_url":"https://github.com/superdesk/superdesk-core/pull/100.diff","patch_url":"https://github.com/superdesk/superdesk-core/pull/100.patch"},"body":"I needed to do that in order to prevent this error:\r\n```\r\n17:19:42 rest.1 | Traceback (most recent call last):\r\n17:19:42 rest.1 |   File \"env/src/superdesk-core/superdesk/notification.py\", line 83, in push_notification\r\n17:19:42 rest.1 |     _notify(event=name, extra=kwargs)\r\n17:19:42 rest.1 |   File \"env/src/superdesk-core/superdesk/notification.py\", line 61, in _notify\r\n17:19:42 rest.1 |     loop = asyncio.get_event_loop()\r\n17:19:42 rest.1 |   File \"/usr/lib/python3.4/asyncio/events.py\", line 576, in get_event_loop\r\n17:19:42 rest.1 |     return get_event_loop_policy().get_event_loop()\r\n17:19:42 rest.1 |   File \"/usr/lib/python3.4/asyncio/events.py\", line 522, in get_event_loop\r\n17:19:42 rest.1 |     % threading.current_thread().name)\r\n17:19:42 rest.1 | RuntimeError: There is no current event loop in thread 'Thread-2'.\r\n```"},"comment":{"url":"https://api.github.com/repos/superdesk/superdesk-core/issues/comments/164765639","html_url":"https://github.com/superdesk/superdesk-core/pull/100#issuecomment-164765639","issue_url":"https://api.github.com/repos/superdesk/superdesk-core/issues/100","id":164765639,"user":{"login":"vied12","id":180617,"avatar_url":"https://avatars.githubusercontent.com/u/180617?v=3","gravatar_id":"","url":"https://api.github.com/users/vied12","html_url":"https://github.com/vied12","followers_url":"https://api.github.com/users/vied12/followers","following_url":"https://api.github.com/users/vied12/following{/other_user}","gists_url":"https://api.github.com/users/vied12/gists{/gist_id}","starred_url":"https://api.github.com/users/vied12/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vied12/subscriptions","organizations_url":"https://api.github.com/users/vied12/orgs","repos_url":"https://api.github.com/users/vied12/repos","events_url":"https://api.github.com/users/vied12/events{/privacy}","received_events_url":"https://api.github.com/users/vied12/received_events","type":"User","site_admin":false},"created_at":"2015-12-15T13:32:37Z","updated_at":"2015-12-15T13:32:37Z","body":":ok_hand:"}}