mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-13 04:53:01 +00:00
die on failed startup
when init, start were made async, the eventloop would continue to run after an exception
This commit is contained in:
@@ -1011,8 +1011,12 @@ class JupyterHub(Application):
|
|||||||
|
|
||||||
@gen.coroutine
|
@gen.coroutine
|
||||||
def launch_instance_async(self, argv=None):
|
def launch_instance_async(self, argv=None):
|
||||||
|
try:
|
||||||
yield self.initialize(argv)
|
yield self.initialize(argv)
|
||||||
yield self.start()
|
yield self.start()
|
||||||
|
except Exception as e:
|
||||||
|
self.log.exception("")
|
||||||
|
self.exit(1)
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def launch_instance(cls, argv=None):
|
def launch_instance(cls, argv=None):
|
||||||
|
Reference in New Issue
Block a user