Merge pull request #1753 from minrk/check-pending

avoid deleting routes for spawners in a pending state
This commit is contained in:
Min RK
2018-04-02 09:31:29 +02:00
committed by GitHub

View File

@@ -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