Skip to content

[stat-gui] Browse Slurm and Flux jobs from the local Attach dialog - #93

Merged
lee218llnl merged 2 commits into
llnl:developfrom
pramodk:pramodk/stat-local-gui-flux-jobs-browse
Dec 4, 2026
Merged

lee218llnl merged 2 commits into
llnl:developfrom
pramodk:pramodk/stat-local-gui-flux-jobs-browse

Conversation

@pramodk

@pramodk pramodk commented Nov 26, 2026

Copy link
Copy Markdown
Collaborator

Summary

This follows up on the review suggestion in #90 to bring the Running Jobs dropdown to the local STAT GUI.

  • Share one Running Jobs picker between the native and SSH dialogs for search, selection, and refresh.
  • Resolve Slurm launchers and manage the Flux debug helper for native attach, detach, and reattach.
  • For Slurm, selecting a job shows only the launchers belonging to that job, even when several jobs share a host.

Details

Notes

  • Tested both the native GUI on the cluster and the standalone GUI over SSH to the same cluster (just on 2 nodes though).
  • Tested native Flux attach, sampling, detach, and reattach with a two-rank Python workload.
  • Note: A coding agent has been used to help with refactoring code, implementation, testing, and documentation.

@lee218llnl - locally this is working for me but on 2 small nodes. Curious if this works.

@lee218llnl

Copy link
Copy Markdown
Collaborator

I was able to attach to slurm jobs and flux jobs on two of our systems.

One issue is that running squeue on our systems is not a good indicator that slurm is the resource manager. On our flux systems, we have wrappers for our users who are more familiar with slurm commands. I'm not sure if this is the best way, but one could look for /run/flux/local. I emailed some folks here to see if they have a better way.

I'm also wondering if the "Current Process List" display makes sense when using the search by RM ID. If a user is using the RM ID interface, they don't need to see the process listing. It looks like the flux implementation has a more intuitive display, showing "Selected Flux Job" with the application name, Nodes, tasks, etc. When selecting a slurm job, I still see the old "Current Process List" interface.

Screenshot 2026-11-30 055626

I think it would be nice if one could use the remote attach all through the GUI. In particular, if they could just run stat-gui without having to specify --remote-login and --remote-prefix. This could perhaps be a new "remote attach" tab or an additional dropdown in the current attach tab, where the user would have to specify the remote host and the remote prefix.

@pramodk

pramodk commented Nov 30, 2026

Copy link
Copy Markdown
Collaborator Author

On our flux systems, we have wrappers for our users who are more familiar with slurm commands. I'm not sure if this is the best way, but one could look for /run/flux/local. I emailed some folks here to see if they have a better way.

Ok. I don't have much experience on Flux. We can also add additional hint paths like /run/flux/local for lookup, etc.
For Slurm, we can also add additional checks than just squeue. Let me know what team says.

I'm also wondering if the "Current Process List" display makes sense when using the search by RM ID.

We could change that. I just kept how the existing UI was showing this.

I think it would be nice if one could use the remote attach all through the GUI. In particular, if they could just run stat-gui without having to specify --remote-login and --remote-prefix. This could perhaps be a new "remote attach" tab or an additional dropdown in the current attach tab, where the user would have to specify the remote host and the remote prefix.

Actually, I had this option in the base implementation like remote attach UI of debuggers :). Then I thought about additional options/configs of SSH jumphost etc and then kept it to minimal. But, it's straightforward and we a keep this on TODOs list.

@lee218llnl

Copy link
Copy Markdown
Collaborator

I think the flux user interface is more intuitive than the slurm on right now. User's would probably prefer to think in terms of jobs, not resource manager process IDs. Let me know if that's something you want to address in this PR or a new one, I'm OK either way. Also, it sounds like checking the return code of flux uptime is a good indicator if flux is running (0 for success, 1 for error). Similarly, let me know if that's something you want to add to this PR.

If everything is for future consideration, then I can merge this when you're ready.

@pramodk

pramodk commented Dec 1, 2026

Copy link
Copy Markdown
Collaborator Author

it sounds like checking the return code of flux uptime is a good indicator if flux is running (0 for success, 1 for error).

Ack, I will check.

I think the flux user interface is more intuitive than the slurm on right now. User's would probably prefer to think in terms of jobs, not resource manager process IDs

Sounds good. Any specific preference for fields to chow? And, if we have multiple srun steps, we list those and provide an option for user to choose?

@lee218llnl

Copy link
Copy Markdown
Collaborator

For fields, perhaps JobName, NTasks, and NodeList. And it would be good to show all slurm job steps and let the user choose the exact one they want.

@pramodk

pramodk commented Dec 2, 2026

Copy link
Copy Markdown
Collaborator Author

I think the flux user interface is more intuitive than the slurm on right now. User's would probably prefer to think in terms of jobs, not resource manager process IDs.

@lee218llnl : In terms of the user interface, I will shortly push this interface.

stat-job-browse-slurm

@pramodk
pramodk force-pushed the pramodk/stat-local-gui-flux-jobs-browse branch from a46cf4a to 8216156 Compare December 3, 2026 12:08
@pramodk

pramodk commented Dec 3, 2026

Copy link
Copy Markdown
Collaborator Author

@lee218llnl - I updated flux selection with flux update when both commands are detected. I have local UI change but I think it's better to have that as a separate PR as it include mostly UI change and also some refactoring of UI code remote and local stat-gui usage.

So once CI passes and if looks ok to you, lets merge this.

@pramodk

pramodk commented Dec 3, 2026

Copy link
Copy Markdown
Collaborator Author

by the way @lee218llnl - this is also ready. (I will create UI one separately).

Could you create some additional labels that we can assign to PRs? E.g. wip, ready-review, needs-changes, ready-merge, needs-input, blocked, etc. Then we can add those labels to the PRs and easy to identify than guessing.

- Share one Running Jobs picker between the native and SSH dialogs for search, selection, and refresh.
- Resolve Slurm launchers and manage the Flux debug helper for native attach, detach, and reattach.
…lations

- Select the installed scheduler directly when only flux or squeue is available and use flux uptime when both exist.
- Report the selected scheduler in server health and reuse it for remote job browsing and sampling.
@pramodk
pramodk force-pushed the pramodk/stat-local-gui-flux-jobs-browse branch from 8216156 to a98764c Compare December 4, 2026 08:17
@lee218llnl

Copy link
Copy Markdown
Collaborator

I added the requested labels. The only other one I could think of is "pending-external" for example when a PR is blocked by a external dependence like MRNet, DynInst, cuda-gdb, etc. This PR looks good to me and I will take a look at the slurm job step PR soon.

@lee218llnl
lee218llnl merged commit 4e4b6b1 into llnl:develop Dec 4, 2026
6 checks passed
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.

2 participants