Is there a way to automatically kill an inactive job in slurm? Or put it in another way, auto extend time limit of the job as long as it is consuming reasonable CPU or interactive with user? Such as by some kind of settings in slurm.conf.
The use case is that during an interactive session (srun --pty), I want to keep the session within the time limit as long as I'm operating on it. But if I didn't operate on it for say 4-hours, then it is safe to kill the session (i.e. the job).