{"action":"created","issue":{"url":"https://api.github.com/repos/Alignak-monitoring/alignak/issues/74","labels_url":"https://api.github.com/repos/Alignak-monitoring/alignak/issues/74/labels{/name}","comments_url":"https://api.github.com/repos/Alignak-monitoring/alignak/issues/74/comments","events_url":"https://api.github.com/repos/Alignak-monitoring/alignak/issues/74/events","html_url":"https://github.com/Alignak-monitoring/alignak/pull/74","id":87810208,"number":74,"title":"Enh/Fix: replace a possible infinite while loop by a for loop.","user":{"login":"gst","id":38055,"avatar_url":"https://avatars.githubusercontent.com/u/38055?v=3","gravatar_id":"","url":"https://api.github.com/users/gst","html_url":"https://github.com/gst","followers_url":"https://api.github.com/users/gst/followers","following_url":"https://api.github.com/users/gst/following{/other_user}","gists_url":"https://api.github.com/users/gst/gists{/gist_id}","starred_url":"https://api.github.com/users/gst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gst/subscriptions","organizations_url":"https://api.github.com/users/gst/orgs","repos_url":"https://api.github.com/users/gst/repos","events_url":"https://api.github.com/users/gst/events{/privacy}","received_events_url":"https://api.github.com/users/gst/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-06-12T18:19:29Z","updated_at":"2015-06-22T00:34:29Z","closed_at":"2015-06-12T19:17:02Z","pull_request":{"url":"https://api.github.com/repos/Alignak-monitoring/alignak/pulls/74","html_url":"https://github.com/Alignak-monitoring/alignak/pull/74","diff_url":"https://github.com/Alignak-monitoring/alignak/pull/74.diff","patch_url":"https://github.com/Alignak-monitoring/alignak/pull/74.patch"},"body":"create_and_launch_worker() does NOT always add a queue to self.q_by_mod,\r\nso the `while len(self.q_by_mod[mod]) < self.min_workers:` could loop forever.\r\n\r\nUse a for loop and that's it.\r\n\r\nCheck create_and_launch_worker() to see that it has \"premature\" return.."},"comment":{"url":"https://api.github.com/repos/Alignak-monitoring/alignak/issues/comments/113972296","html_url":"https://github.com/Alignak-monitoring/alignak/pull/74#issuecomment-113972296","issue_url":"https://api.github.com/repos/Alignak-monitoring/alignak/issues/74","id":113972296,"user":{"login":"gst","id":38055,"avatar_url":"https://avatars.githubusercontent.com/u/38055?v=3","gravatar_id":"","url":"https://api.github.com/users/gst","html_url":"https://github.com/gst","followers_url":"https://api.github.com/users/gst/followers","following_url":"https://api.github.com/users/gst/following{/other_user}","gists_url":"https://api.github.com/users/gst/gists{/gist_id}","starred_url":"https://api.github.com/users/gst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gst/subscriptions","organizations_url":"https://api.github.com/users/gst/orgs","repos_url":"https://api.github.com/users/gst/repos","events_url":"https://api.github.com/users/gst/events{/privacy}","received_events_url":"https://api.github.com/users/gst/received_events","type":"User","site_admin":false},"created_at":"2015-06-22T00:34:29Z","updated_at":"2015-06-22T00:34:29Z","body":"Always exploit the power of the language !!"}}