{"action":"created","issue":{"url":"https://api.github.com/repos/spotify/luigi/issues/1826","repository_url":"https://api.github.com/repos/spotify/luigi","labels_url":"https://api.github.com/repos/spotify/luigi/issues/1826/labels{/name}","comments_url":"https://api.github.com/repos/spotify/luigi/issues/1826/comments","events_url":"https://api.github.com/repos/spotify/luigi/issues/1826/events","html_url":"https://github.com/spotify/luigi/pull/1826","id":172969776,"number":1826,"title":"Allow port reuse for central scheduler server","user":{"login":"darabos","id":1268018,"avatar_url":"https://avatars.githubusercontent.com/u/1268018?v=3","gravatar_id":"","url":"https://api.github.com/users/darabos","html_url":"https://github.com/darabos","followers_url":"https://api.github.com/users/darabos/followers","following_url":"https://api.github.com/users/darabos/following{/other_user}","gists_url":"https://api.github.com/users/darabos/gists{/gist_id}","starred_url":"https://api.github.com/users/darabos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/darabos/subscriptions","organizations_url":"https://api.github.com/users/darabos/orgs","repos_url":"https://api.github.com/users/darabos/repos","events_url":"https://api.github.com/users/darabos/events{/privacy}","received_events_url":"https://api.github.com/users/darabos/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-24T14:39:06Z","updated_at":"2016-08-24T14:39:08Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/spotify/luigi/pulls/1826","html_url":"https://github.com/spotify/luigi/pull/1826","diff_url":"https://github.com/spotify/luigi/pull/1826.diff","patch_url":"https://github.com/spotify/luigi/pull/1826.patch"},"body":"## Description\r\nAllows port reuse for the central scheduler server.\r\n\r\n## Motivation and Context\r\nOtherwise it is impossible to restart the scheduler. For a minute or more startup fails with:\r\n\r\n```\r\nTraceback (most recent call last):\r\n  File \"/usr/bin/luigid\", line 11, in <module>\r\n    sys.exit(luigid())\r\n  File \"/usr/lib/python3.5/site-packages/luigi/cmdline.py\", line 56, in luigid\r\n    luigi.server.run(api_port=opts.port, address=opts.address, unix_socket=opts.unix_socket)\r\n  File \"/usr/lib/python3.5/site-packages/luigi/server.py\", line 260, in run\r\n    unix_socket=unix_socket,\r\n  File \"/usr/lib/python3.5/site-packages/luigi/server.py\", line 237, in _init_api\r\n    api_sockets = tornado.netutil.bind_sockets(api_port, address=address)\r\n  File \"/usr/lib64/python3.5/site-packages/tornado/netutil.py\", line 194, in bind_sockets\r\n    sock.bind(sockaddr)\r\nOSError: [Errno 98] Address already in use\r\n```\r\n\r\n## Have you tested this? If so, how?\r\nManually tried restarting it after this change. Works okay now.\r\n"},"comment":{"url":"https://api.github.com/repos/spotify/luigi/issues/comments/242087978","html_url":"https://github.com/spotify/luigi/pull/1826#issuecomment-242087978","issue_url":"https://api.github.com/repos/spotify/luigi/issues/1826","id":242087978,"user":{"login":"mention-bot","id":15710697,"avatar_url":"https://avatars.githubusercontent.com/u/15710697?v=3","gravatar_id":"","url":"https://api.github.com/users/mention-bot","html_url":"https://github.com/mention-bot","followers_url":"https://api.github.com/users/mention-bot/followers","following_url":"https://api.github.com/users/mention-bot/following{/other_user}","gists_url":"https://api.github.com/users/mention-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/mention-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mention-bot/subscriptions","organizations_url":"https://api.github.com/users/mention-bot/orgs","repos_url":"https://api.github.com/users/mention-bot/repos","events_url":"https://api.github.com/users/mention-bot/events{/privacy}","received_events_url":"https://api.github.com/users/mention-bot/received_events","type":"User","site_admin":false},"created_at":"2016-08-24T14:39:07Z","updated_at":"2016-08-24T14:39:07Z","body":"@darabos, thanks for your PR! By analyzing the annotation information on this pull request, we identified @graingert, @ystopia and @erikbern to be potential reviewers"}}
{"actor":{"display_login":"mention-bot"}}