{"action":"created","issue":{"url":"https://api.github.com/repos/promethe42/cocorico/issues/53","repository_url":"https://api.github.com/repos/promethe42/cocorico","labels_url":"https://api.github.com/repos/promethe42/cocorico/issues/53/labels{/name}","comments_url":"https://api.github.com/repos/promethe42/cocorico/issues/53/comments","events_url":"https://api.github.com/repos/promethe42/cocorico/issues/53/events","html_url":"https://github.com/promethe42/cocorico/issues/53","id":180574971,"number":53,"title":"Queue consumers do not reconnect when queue broker is restarted","user":{"login":"yaubi","id":304520,"avatar_url":"https://avatars.githubusercontent.com/u/304520?v=3","gravatar_id":"","url":"https://api.github.com/users/yaubi","html_url":"https://github.com/yaubi","followers_url":"https://api.github.com/users/yaubi/followers","following_url":"https://api.github.com/users/yaubi/following{/other_user}","gists_url":"https://api.github.com/users/yaubi/gists{/gist_id}","starred_url":"https://api.github.com/users/yaubi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yaubi/subscriptions","organizations_url":"https://api.github.com/users/yaubi/orgs","repos_url":"https://api.github.com/users/yaubi/repos","events_url":"https://api.github.com/users/yaubi/events{/privacy}","received_events_url":"https://api.github.com/users/yaubi/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/promethe42/cocorico/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-10-03T07:05:09Z","updated_at":"2016-10-21T08:04:40Z","closed_at":"2016-10-20T23:27:05Z","body":"The vote, ballot and webhook workers all connect to RabbitMQ at startup. However, when RabbitMQ is restarted, they do not reconnect by themselves. To have them continue consuming messages from the broker, they have to be restarted intentionally.\r\n\r\nI can think of at least two potential solutions to this problem:\r\n\r\n1. Automatically restart the 3 workers when RabbitMQ is restarted — provided message processing is reentrant (which, if it is not the case, is another kind of problem).\r\n2. Have the 3 workers reconnect by themselves when the connection to RabbitMQ is lost. Such code should be shared between workers (as a base class, for example).\r\n"},"comment":{"url":"https://api.github.com/repos/promethe42/cocorico/issues/comments/255319726","html_url":"https://github.com/promethe42/cocorico/issues/53#issuecomment-255319726","issue_url":"https://api.github.com/repos/promethe42/cocorico/issues/53","id":255319726,"user":{"login":"yaubi","id":304520,"avatar_url":"https://avatars.githubusercontent.com/u/304520?v=3","gravatar_id":"","url":"https://api.github.com/users/yaubi","html_url":"https://github.com/yaubi","followers_url":"https://api.github.com/users/yaubi/followers","following_url":"https://api.github.com/users/yaubi/following{/other_user}","gists_url":"https://api.github.com/users/yaubi/gists{/gist_id}","starred_url":"https://api.github.com/users/yaubi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yaubi/subscriptions","organizations_url":"https://api.github.com/users/yaubi/orgs","repos_url":"https://api.github.com/users/yaubi/repos","events_url":"https://api.github.com/users/yaubi/events{/privacy}","received_events_url":"https://api.github.com/users/yaubi/received_events","type":"User","site_admin":false},"created_at":"2016-10-21T08:04:40Z","updated_at":"2016-10-21T08:04:40Z","body":"Not sure it is fixed. Have you tested?"}}
{"actor":{"display_login":"yaubi"}}