mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-17 15:03:02 +00:00
Merge pull request #1753 from minrk/check-pending
avoid deleting routes for spawners in a pending state
This commit is contained in:
@@ -311,7 +311,10 @@ class Proxy(LoggingConfigurable):
|
||||
spec, route['target'], spawner.server,
|
||||
)
|
||||
futures.append(self.add_user(user, name))
|
||||
elif spawner._spawn_pending:
|
||||
elif spawner.pending:
|
||||
# don't consider routes stale if the spawner is in any pending event
|
||||
# wait until after the pending state clears before taking any actions
|
||||
# they could be pending deletion from the proxy!
|
||||
good_routes.add(spawner.proxy_spec)
|
||||
|
||||
# check service routes
|
||||
|
Reference in New Issue
Block a user