{"action":"created","issue":{"url":"https://api.github.com/repos/aaivazis/nautilus/issues/42","repository_url":"https://api.github.com/repos/aaivazis/nautilus","labels_url":"https://api.github.com/repos/aaivazis/nautilus/issues/42/labels{/name}","comments_url":"https://api.github.com/repos/aaivazis/nautilus/issues/42/comments","events_url":"https://api.github.com/repos/aaivazis/nautilus/issues/42/events","html_url":"https://github.com/aaivazis/nautilus/pull/42","id":140273381,"number":42,"title":"fixed bug where child processes would also get registered with consul","user":{"login":"aaivazis","id":916317,"avatar_url":"https://avatars.githubusercontent.com/u/916317?v=3","gravatar_id":"","url":"https://api.github.com/users/aaivazis","html_url":"https://github.com/aaivazis","followers_url":"https://api.github.com/users/aaivazis/followers","following_url":"https://api.github.com/users/aaivazis/following{/other_user}","gists_url":"https://api.github.com/users/aaivazis/gists{/gist_id}","starred_url":"https://api.github.com/users/aaivazis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aaivazis/subscriptions","organizations_url":"https://api.github.com/users/aaivazis/orgs","repos_url":"https://api.github.com/users/aaivazis/repos","events_url":"https://api.github.com/users/aaivazis/events{/privacy}","received_events_url":"https://api.github.com/users/aaivazis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2016-03-11T19:41:48Z","updated_at":"2016-03-12T12:13:35Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/aaivazis/nautilus/pulls/42","html_url":"https://github.com/aaivazis/nautilus/pull/42","diff_url":"https://github.com/aaivazis/nautilus/pull/42.diff","patch_url":"https://github.com/aaivazis/nautilus/pull/42.patch"},"body":"@janjaapbos can you verify that this prevents the sub-process from being registered with consul?"},"comment":{"url":"https://api.github.com/repos/aaivazis/nautilus/issues/comments/195727791","html_url":"https://github.com/aaivazis/nautilus/pull/42#issuecomment-195727791","issue_url":"https://api.github.com/repos/aaivazis/nautilus/issues/42","id":195727791,"user":{"login":"janjaapbos","id":2115592,"avatar_url":"https://avatars.githubusercontent.com/u/2115592?v=3","gravatar_id":"","url":"https://api.github.com/users/janjaapbos","html_url":"https://github.com/janjaapbos","followers_url":"https://api.github.com/users/janjaapbos/followers","following_url":"https://api.github.com/users/janjaapbos/following{/other_user}","gists_url":"https://api.github.com/users/janjaapbos/gists{/gist_id}","starred_url":"https://api.github.com/users/janjaapbos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/janjaapbos/subscriptions","organizations_url":"https://api.github.com/users/janjaapbos/orgs","repos_url":"https://api.github.com/users/janjaapbos/repos","events_url":"https://api.github.com/users/janjaapbos/events{/privacy}","received_events_url":"https://api.github.com/users/janjaapbos/received_events","type":"User","site_admin":false},"created_at":"2016-03-12T12:13:35Z","updated_at":"2016-03-12T12:13:35Z","body":"That would be the easy way. ;-)\r\n\r\nI would like to be able to use the debug mode. I think it is due to the code reloader. See: http://stackoverflow.com/questions/31264826/start-a-flask-application-in-separate-thread\r\n\r\nSo we can use that option: app.use_reloader=False\r\nI just checked that this solves the issue while still running with debug mode.\r\n\r\nOr perhaps some global variable can be set that is not reinitialised with the code reload, and check that variable for an active consul session before starting it."}}