From 6e27622f76c512436fffb9a030b36232d75d769d Mon Sep 17 00:00:00 2001 From: Min RK Date: Wed, 29 Aug 2018 16:46:04 +0200 Subject: [PATCH] set cleanup_servers = False leaves users running when the hub restarts Tests were relying on a bug in 0.9.1 that prevented cleanup due to improper handling of signals --- tljh/jupyterhub_config.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tljh/jupyterhub_config.py b/tljh/jupyterhub_config.py index 4abb891..006c9b2 100644 --- a/tljh/jupyterhub_config.py +++ b/tljh/jupyterhub_config.py @@ -29,6 +29,9 @@ class CustomSpawner(SystemdSpawner): c.JupyterHub.spawner_class = CustomSpawner +# leave users running when the Hub restarts +c.JupyterHub.cleanup_servers = False + # Use a high port so users can try this on machines with a JupyterHub already present c.JupyterHub.hub_port = 15001