ondemand icon indicating copy to clipboard operation
ondemand copied to clipboard

Warning for expiring interactive sessions

Open SanderBorgmans opened this issue 3 years ago • 5 comments

Hi,

Would there be some way to notify the user when an interactive session (e.g. a Jupyter notebook) is expiring (almost at run time limit)? The problem is that Jupyter notebooks can not be saved when the session has expired, such that if this happens, one has no other choice but to open a new session and copy all the non-saved changes to the new session before closing the expired one.

Thanks in advance!

┆Issue is synchronized with this Asana task by Unito

SanderBorgmans avatar Oct 13 '21 08:10 SanderBorgmans

Hi, thanks for the feature request.

I'm not sure how this could work off hand because the user would be in another window. Maybe if we start using notifications?

johrstrom avatar Oct 13 '21 13:10 johrstrom

Hi @johrstrom ,

A notification of some sort is perfect. When using slurm it is for instance possible to inform the user by mail that the run_time has reached 90% of the time limit.

SanderBorgmans avatar Oct 13 '21 13:10 SanderBorgmans

Ohhhh! Thanks for the tip. Seems like even without a notification we may be able to support TIME_LIMIT_90 for Slurm.

johrstrom avatar Oct 13 '21 14:10 johrstrom

I opened https://github.com/OSC/ood_core/issues/325 for the same.

johrstrom avatar Oct 13 '21 14:10 johrstrom

+1 for this feature, as we've had user requests along these lines. I was curious though if a browser-based notification could be sent instead of/in addition to an email? Along the lines of what is discussed here, but for jobs nearing the end of their walltime. Perhaps the SLURM --signal option could be used to initially signal the controlling process in the batch job and thus trigger the notification from OOD?

acaprez avatar Sep 23 '22 23:09 acaprez