mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-17 15:03:02 +00:00
get the tests running
This commit is contained in:
@@ -185,6 +185,8 @@ class UserServerAPIHandler(APIHandler):
|
||||
user = self.find_user(name)
|
||||
if server_name and not self.allow_named_servers:
|
||||
raise web.HTTPError(400, "Named servers are not enabled.")
|
||||
if self.allow_named_servers and not server_name:
|
||||
server_name = user.default_server_name()
|
||||
spawner = user.spawners[server_name]
|
||||
pending = spawner.pending
|
||||
if pending == 'spawn':
|
||||
@@ -194,8 +196,6 @@ class UserServerAPIHandler(APIHandler):
|
||||
elif pending:
|
||||
raise web.HTTPError(400, "%s is pending %s" % (spawner._log_name, pending))
|
||||
|
||||
self._check_pending(spawner, accepted='spawn')
|
||||
|
||||
if spawner.ready:
|
||||
# include notify, so that a server that died is noticed immediately
|
||||
# set _spawn_pending flag to prevent races while we wait
|
||||
|
Reference in New Issue
Block a user