{"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":5,"created_at":"2016-03-11T19:41:48Z","updated_at":"2016-03-12T06:33:10Z","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/195669940","html_url":"https://github.com/aaivazis/nautilus/pull/42#issuecomment-195669940","issue_url":"https://api.github.com/repos/aaivazis/nautilus/issues/42","id":195669940,"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-12T06:33:10Z","updated_at":"2016-03-12T06:33:10Z","body":"I see where my issue comes from, when I start the service with the --debug flag I have two instances running of the same. At the prompt it is notified as a restart, but apparently the original consul registration is not closed.\r\n\r\n/usr/local/lib/python3.4/dist-packages/SQLAlchemy-1.0.12-py3.4-linux-x86_64.egg/sqlalchemy/ext/declarative/api.py:173: SAWarning: Unmanaged access of declarative attribute __tablename__ from non-mapped class BaseModel\r\n  (desc.fget.__name__, cls.__name__))\r\n * Running on http://0.0.0.0:8001/ (Press CTRL+C to quit)\r\n * Restarting with stat\r\n/usr/local/lib/python3.4/dist-packages/SQLAlchemy-1.0.12-py3.4-linux-x86_64.egg/sqlalchemy/ext/declarative/api.py:173: SAWarning: Unmanaged access of declarative attribute __tablename__ from non-mapped class BaseModel\r\n  (desc.fget.__name__, cls.__name__))\r\n * Debugger is active!\r\n * Debugger pin code: 148-648-910\r\n  \r\n\r\nWithout the --debug flag it works correctly, only a single instance is registered."}}