Skip to content

Run the startup SLURM queries before claiming the terminal - #59

Merged
fedonman merged 1 commit into
mainfrom
fixed/probe-before-claiming-terminal
Sep 29, 2026
Merged

fedonman merged 1 commit into
mainfrom
fixed/probe-before-claiming-terminal

Conversation

@fedonman

Copy link
Copy Markdown
Owner

main entered raw mode and the alternate screen before building the Dashboard, whose constructor blocks on sinfo and sacctmgr, and run() then blocked on the first squeue before drawing a frame. On a slow cluster that left a blank screen, and with raw mode on, Ctrl+C was a key event nobody read. The Dashboard is now built first, and the first squeue moves from run() to the end of new(), so every blocking startup query runs on the normal terminal where Ctrl+C works and an error is readable.

Closes #24

@fedonman
fedonman force-pushed the fixed/probe-before-claiming-terminal branch from 3bf3c5a to c909d03 Compare September 28, 2026 14:26
main enabled raw mode and entered the alternate screen before building
the Dashboard, whose constructor blocks on sinfo and sacctmgr, and
run() then blocked on the first squeue before drawing anything. On a
slow cluster the user got a blank screen, and with raw mode on, Ctrl+C
was a key event nobody was reading. The Dashboard is now built first,
with the first squeue moved from run() to the end of new(), so every
blocking startup query runs on the normal terminal.
@fedonman
fedonman force-pushed the fixed/probe-before-claiming-terminal branch from c909d03 to 42127c6 Compare September 29, 2026 10:02
@fedonman
fedonman merged commit 55fe05a into main Sep 29, 2026
6 checks passed
@fedonman
fedonman deleted the fixed/probe-before-claiming-terminal branch September 29, 2026 10:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Slow startup probes leave a black screen that Ctrl+C cannot escape

1 participant