Consider running a shell in the allocated node directly #174

Closed
opened 2025-09-25 15:50:50 +02:00 by rarias · 0 comments
Owner

With LaunchParameters=use_interactive_step an interactive shell will be opened in one of the allocated nodes:

https://slurm.schedmd.com/slurm.conf.html#OPT_InteractiveStepOptions

We may want to do that instead of opening a shell in the current node, as when the session ends, the process continues to live, causing a tree of broken sessions:

tmux: server│tmux
├─ bash│-bash
│  └─ salloc│sh /run/current-system/sw/bin/salloc -p fox --time=12:00:00 --exclusive
│     └─ salloc -p fox --time=12:00:00 --exclusive
│        └─ bash
│           └─ salloc│sh /run/current-system/sw/bin/salloc -p fox --time=12:00:00 --exclusive
│              └─ salloc -p fox --time=12:00:00 --exclusive
│                 └─ bash
│                    └─ salloc│sh /run/current-system/sw/bin/salloc -p fox --time=12:00:00 --exclusive
│                       └─ salloc -p fox --time=12:00:00 --exclusive
│                          └─ bash
│                             └─ salloc│sh /run/current-system/sw/bin/salloc -p fox --time=12:00:00
│                                └─ salloc -p fox --time=12:00:00
│                                   └─ bash
│                                      └─ salloc│sh /run/current-system/sw/bin/salloc -p fox --time=12:00:00 --exclusive
│                                         └─ salloc -p fox --time=12:00:00 --exclusive
│                                            └─ bash
With `LaunchParameters=use_interactive_step` an interactive shell will be opened in one of the allocated nodes: https://slurm.schedmd.com/slurm.conf.html#OPT_InteractiveStepOptions We may want to do that instead of opening a shell in the current node, as when the session ends, the process continues to live, causing a tree of broken sessions: ``` tmux: server│tmux ├─ bash│-bash │ └─ salloc│sh /run/current-system/sw/bin/salloc -p fox --time=12:00:00 --exclusive │ └─ salloc -p fox --time=12:00:00 --exclusive │ └─ bash │ └─ salloc│sh /run/current-system/sw/bin/salloc -p fox --time=12:00:00 --exclusive │ └─ salloc -p fox --time=12:00:00 --exclusive │ └─ bash │ └─ salloc│sh /run/current-system/sw/bin/salloc -p fox --time=12:00:00 --exclusive │ └─ salloc -p fox --time=12:00:00 --exclusive │ └─ bash │ └─ salloc│sh /run/current-system/sw/bin/salloc -p fox --time=12:00:00 │ └─ salloc -p fox --time=12:00:00 │ └─ bash │ └─ salloc│sh /run/current-system/sw/bin/salloc -p fox --time=12:00:00 --exclusive │ └─ salloc -p fox --time=12:00:00 --exclusive │ └─ bash ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: rarias/jungle#174
No description provided.