mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-18 15:33:02 +00:00
fix IOLoop / subprocess cleanup
- use IOLoop.current - don't stop loop in cleanup
This commit is contained in:
@@ -348,7 +348,6 @@ class JupyterHubApp(Application):
|
|||||||
|
|
||||||
# finally stop the loop once we are all cleaned up
|
# finally stop the loop once we are all cleaned up
|
||||||
self.log.info("...done")
|
self.log.info("...done")
|
||||||
IOLoop.instance().stop()
|
|
||||||
|
|
||||||
def start(self):
|
def start(self):
|
||||||
"""Start the whole thing"""
|
"""Start the whole thing"""
|
||||||
@@ -358,7 +357,7 @@ class JupyterHubApp(Application):
|
|||||||
http_server = tornado.httpserver.HTTPServer(self.tornado_application)
|
http_server = tornado.httpserver.HTTPServer(self.tornado_application)
|
||||||
http_server.listen(self.hub_port)
|
http_server.listen(self.hub_port)
|
||||||
|
|
||||||
loop = IOLoop.instance()
|
loop = IOLoop.current()
|
||||||
try:
|
try:
|
||||||
loop.start()
|
loop.start()
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
|
Reference in New Issue
Block a user