renku icon indicating copy to clipboard operation
renku copied to clipboard

Provide user feedback when JupyterHub terminates a pod

Open ciyer opened this issue 5 years ago • 5 comments

Description

JupyterHub 1.0 will terminate pods that take longer than a configurable timeout to start. If this happens, we should inform the user about it, not just silently show that there are no environments starting anymore.

ciyer avatar Oct 01 '19 08:10 ciyer

@ciyer the timeout will probably be exceeded if there is a problem starting the pod (like a missing image) - in that case I guess we should show the error straight away.

rokroskar avatar Feb 05 '21 10:02 rokroskar

@olevski is it possible for the notebook-service to retrieve information about this either from k8s or from jh? If so, then we should return this info in in the response to the GET on a particular server.

rokroskar avatar Feb 05 '21 10:02 rokroskar

I am sorry for being late to this. I will do some digging to see how the JH API reports a launch of a notebook that has timed out (i.e. which status code and if any message is provided).

Also I think the proper place to report this information is not by GET on servers but in the response to the POST request that is attempting to launch the notebook that timed out.

olevski avatar Feb 12 '21 09:02 olevski

Also @ciyer do you know which conditions trigger the behaviour you mention above? And can you post them? It would be helpful to recreate it and see what is happening in the notebooks api and in the JH api.

olevski avatar Feb 12 '21 09:02 olevski

you can make an image that's missing the jupyterhub-singleuser script so the container will fail to start - it will briefly say it's running, then change to pending and eventually disappear.

rokroskar avatar Feb 12 '21 15:02 rokroskar