Skip to content

[stat-gui] Select a running Slurm step from the Attach dialog - #103

Open
pramodk wants to merge 2 commits into
llnl:developfrom
pramodk:pramodk/stat-slurm-step-selection
Open

pramodk wants to merge 2 commits into
llnl:developfrom
pramodk:pramodk/stat-slurm-step-selection

Conversation

@pramodk

@pramodk pramodk commented Dec 4, 2026 •

Copy link
Copy Markdown
Collaborator

Note: only commit 2380c20 is relevant for this PR. Other two commits are part of the #93. This PR can be merged after the #93.

Summary

  • The native and Remote Connect GUIs list the running application steps for a selected Slurm job. This lets users
    attach to a specific step when a batch job runs several srun commands.
  • STAT selects the first attachable step by default. Selecting another step updates the shared panel with its job ID,
    name, node list, task count, and launcher command.

Examples

image

Notes

  • Tested the native GUI and standalone GUI over SSH.
  • A coding agent has been used to help with refactoring code and implementation.

@pramodk
pramodk force-pushed the pramodk/stat-slurm-step-selection branch from 2380c20 to ae932ce Compare December 4, 2026 08:19
@lee218llnl

Copy link
Copy Markdown
Collaborator

Switching between "Search for job by Resource Manager Job ID" and "Search for job by hostname" should trigger a refresh of the process list/job steps. Right now, if I switch from Job ID to hostname, I still see "Job Steps" rather than "Current Process List". It looks like I actually have to click "Search Remote Host" to get it to switch, even the "Refresh Process List" doesn't do it.

As far as UI design, maybe the "Job Steps" frame should actually be a child of the "RM Job ID" drop down. Right now, since the "RM Job ID" and "Current Process List" share the same location, it looks like both are a child of the "Search by hostname" drop down. Actually, if those two frames are separate and live under their respective drop downs, then the first comment about needing a refresh may be irrelevant.

Let me know if this all makes sense, particularly the UI suggestion.

- Show running steps for the selected Slurm job in the native and Remote Connect GUIs.
- Display the selected step’s name, nodes, task count, and launcher command alongside the step list.
- Recheck the step ID, host, and launcher PID before attaching so an ended step cannot redirect the attachment.
- List each running Slurm step by ID, name, and nodes, and show its details in the shared results pane.
- Sync manual searches with the dropdown, refresh when switching search modes, and clarify the Attach layout.
@pramodk
pramodk force-pushed the pramodk/stat-slurm-step-selection branch from ae932ce to ff4624c Compare December 4, 2026 20:40
@pramodk

pramodk commented Dec 4, 2026

Copy link
Copy Markdown
Collaborator Author

Keeping those two frames separate and live under their respective drop downs - it wasn't looking better i.e. current area for process or job steps look better?

GUI is difficult 😅. I kept like below for now and looks like:

image

I will push this and if it's acceptable, we can merge this version.

@lee218llnl

Copy link
Copy Markdown
Collaborator

Thanks, this looks good to me. I notice that when switching from search by host to search by job ID, the attach window appears to background itself. There's a bit of delay and I see a dialog, perhaps a wait dialog, pop up and disappear immediately after the wait. The Attach window then ends up being unselected and slightly greyed out. Let me know if you can reproduce that behavior. I'm OK with merging this PR and then dealing with that as a separate issue.

I also may have some ideas on how to slightly tweak the interface but that can be a project for me.

Let me know if this is ready to merge or if you want to look into the wait dialong/window backgrounding.first

@pramodk

pramodk commented Dec 5, 2026

Copy link
Copy Markdown
Collaborator Author

I notice that when switching from search by host to search by job ID, the attach window appears to background itself. There's a bit of delay and I see a dialog, perhaps a wait dialog, pop up and disappear immediately after the wait. The Attach window then ends up being unselected and slightly greyed out. Let me know if you can reproduce that behavior.

Ack, let me check if I see this behavior.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants