mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-18 07:23:00 +00:00
Don't delete failed spawners
They preserve error messages that are useful only delete spawners that shutdown cleanly
This commit is contained in:
@@ -554,5 +554,7 @@ class User:
|
|||||||
except Exception:
|
except Exception:
|
||||||
self.log.exception("Error in Authenticator.post_spawn_stop for %s", self)
|
self.log.exception("Error in Authenticator.post_spawn_stop for %s", self)
|
||||||
spawner._stop_pending = False
|
spawner._stop_pending = False
|
||||||
# pop the Spawner object
|
if not (spawner._spawn_future and spawner._spawn_future.exception()):
|
||||||
self.spawners.pop(server_name)
|
# pop Spawner *unless* it's stopping due to an error
|
||||||
|
# because some pages serve latest-spawn error messages
|
||||||
|
self.spawners.pop(server_name)
|
||||||
|
Reference in New Issue
Block a user