You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a way we could make a small extension that displays a (lower bound) on how much time is left till the kernel/binder instance gets culled?
I think think this would be a good way to make people aware that culling is happening and how long they have left. They'd probably also learn fairly quickly which actions lead to the timer being reset. Some of the negative experiences people have with Binder is because they don't know or forget about the culling. So as a little surprise after putting in effort they lose all their work.
The text was updated successfully, but these errors were encountered:
It can be a little tricky to retrieve this information inside the container, especially since it's a vanilla notebook, not a jupyterhub-singleuser instance.
The most direct way is to query the jupyterhub api's last_activity data. This is what's actually used for culling most of the time. However, it's only updated every ~5 minutes.
The second way is to use the notebook's internal last_activity tracking used for its self-culling (I think we should move toward relying on this in general, and push the external culler to be only a fallback and for enforcing max-age, for #831 among other reasons). This should work pretty reliably, but may not always match up with the values truly used in the external culler.
If we use the internal culling to feed this "time to cull" display do we get a lower bound (for all sensibly configured external cullers)? I was thinking that if we know the last activity timestamp and know the cull timeout then a piece of JS can show (an estimate of) the time remaining.
(I need to read #831 a few more times to really understand it.)
Is there a way we could make a small extension that displays a (lower bound) on how much time is left till the kernel/binder instance gets culled?
I think think this would be a good way to make people aware that culling is happening and how long they have left. They'd probably also learn fairly quickly which actions lead to the timer being reset. Some of the negative experiences people have with Binder is because they don't know or forget about the culling. So as a little surprise after putting in effort they lose all their work.
The text was updated successfully, but these errors were encountered: