mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-12 12:33:02 +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
|
||||
def launch_instance_async(self, argv=None):
|
||||
try:
|
||||
yield self.initialize(argv)
|
||||
yield self.start()
|
||||
except Exception as e:
|
||||
self.log.exception("")
|
||||
self.exit(1)
|
||||
|
||||
@classmethod
|
||||
def launch_instance(cls, argv=None):
|
||||
|
Reference in New Issue
Block a user