# Make interactive jobs survive a restart of the login node

**URL:** <http://hpc-community.unige.ch/t/make-interactive-jobs-survive-a-restart-of-the-login-node/3019>\
**Category:** HPC Technical\
**Created:** [September 8, 2023, 10:00am UTC](http://hpc-community.unige.ch/t/make-interactive-jobs-survive-a-restart-of-the-login-node/3019 "2023-09-08T10:00:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michael.Sonner](http://hpc-community.unige.ch/letter_avatar_proxy/v4/letter/m/a8b319/32.png) [@Michael.Sonner](http://hpc-community.unige.ch/u/Michael.Sonner)\
**Post date:** [September 8, 2023, 10:00am UTC](http://hpc-community.unige.ch/t/make-interactive-jobs-survive-a-restart-of-the-login-node/3019/1 "2023-09-08T10:00:59Z")

</div>

Dear hpc-team,  
Is it possible to run longer interactive jobs in a way that they survive the restart of the login node?  
Currently I am using something like  
`salloc --time 4-00:00:0 --partition private-dpt-cpu,public-cpu --cpus-per-task 30 --mem 150G`  
inside of a tmux on the login node. Of course this means that this job dies if there is an issue with communication or a reboot of the login node. Is there a way to avoid this?

Cheers,  
Michael

---

<div class="post-metadata">

**Author:** ![Yann.Sagon](http://hpc-community.unige.ch/user_avatar/hpc-community.unige.ch/yann.sagon/32/3_2.png) [@Yann.Sagon](http://hpc-community.unige.ch/u/Yann.Sagon)\
**Post date:** [September 8, 2023, 12:39pm UTC](http://hpc-community.unige.ch/t/make-interactive-jobs-survive-a-restart-of-the-login-node/3019/2 "2023-09-08T12:39:10Z")

</div>

Hi, not sure there is an easy way to do so. Hopefully we won’t have to reboot login node again soon.

out of curiosity:why do you need an interactive allocation?

---

<div class="post-metadata">

**Author:** ![Michael.Sonner](http://hpc-community.unige.ch/letter_avatar_proxy/v4/letter/m/a8b319/32.png) [@Michael.Sonner](http://hpc-community.unige.ch/u/Michael.Sonner)\
**Post date:** [September 11, 2023, 9:06am UTC](http://hpc-community.unige.ch/t/make-interactive-jobs-survive-a-restart-of-the-login-node/3019/3 "2023-09-11T09:06:08Z")

</div>

Hi Yann,  
Ok, let’s keep our fingers crossed 🤞.  
In general I tend to use interactive sessions for ‘one-of-a-kind’ computations or when using new, potentially buggy code. This way I can see if intermediate results look reasonable and stop if they don’t, checkpoint manually in case the computing time is longer then expected, fix smaller mistakes live and debug significantly easier. Once the code is reliable and it is a matter of running it for a lot of parameters, of course `sbatch` is the way to go.  
Cheers,  
Michael
