Add section on recovering disconnected SLURM interactive sessions#322
Open
d-morrison wants to merge 2 commits into
Open
Add section on recovering disconnected SLURM interactive sessions#322d-morrison wants to merge 2 commits into
d-morrison wants to merge 2 commits into
Conversation
Document why interactive sessions drop, how to prevent it with a terminal multiplexer, and how to reconnect to a surviving allocation (including the --overlap flag required on SLURM 20.11+). Add references to the srun, salloc, squeue, and sattach documentation. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0177QtQQ7Ebz4Yg5GAVH7QJp
Replace literal em-dashes with pandoc `---` to satisfy the check-chars workflow, and add "multiplexer" and "reattach" to the spellcheck wordlist. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0177QtQQ7Ebz4Yg5GAVH7QJp
Contributor
|
Claude encountered an error —— View job I'll analyze this and get back to you. |
Contributor
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a new "Recovering a disconnected interactive session" section to the HPC/SLURM chapter (
slurm.qmd), documenting what to do when an interactive SLURM session drops.This is a corrected version of advice that circulates online (e.g. AI-generated answers suggesting you can always "reenter" a dropped allocation). The key correction: for a plain interactive
srun --pty/sallocsession, losing the terminal usually tears down the whole allocation, not just the shell — so there is often nothing left to reattach to. The section therefore leads with prevention and is explicit about when recovery is actually possible.What's covered
tmux/screenon the login node, then launch the allocation from inside it so it survives an SSH drop; reattach withtmux attach.squeue --me, then open a new job step withsrun --jobid=<JOBID> --overlap --pty bash.--overlapcaveat — flagged in acallout-important: required since SLURM 20.11, otherwisesrunhangs waiting for resources the running step holds.sattachas the alternative for reattaching to an existing step's I/O, plus acallout-notethat exact behavior is cluster-specific.References
Added
@onlinebib entries tobook.bibfor thesrun,salloc,squeue, andsattachSchedMD documentation pages, cited inline in the new section (matching the existing@slurmsbatch reference).🤖 Generated with Claude Code
Generated by Claude Code