You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Scenario:
As a sysadmin, I'm planning to do maintenance on an arbitrary set of nodes. After draining those nodes, I'd like an easy way to return a list of jobs running on them so I can contact the job owners/see when they'll expire/kill them outright/whatever. Something like flux jobs -i <hostlist> would make sense.
Design-wise, it arguably makes sense assume -A but that breaks the current paradigm.
The text was updated successfully, but these errors were encountered:
Note there is sort of a solution to this proposed in #5711. It adds a query syntax to the -f, --filter option that would allow you to get this result with flux jobs -f host:<hostlist> -f running. That PR has never been merged because there isn't good consensus on the interface.
Perhaps filtering flux jobs by hostlist would be common enough that it should get its own option. I like your idea of using the -i, --include=hosts|ranks from the flux resource utilities, though I also wonder if that could be confusing in flux jobs which isn't listing resources (and not all jobs even have had resources assigned).
Anyway, we could support this option and and it with other filter options including any result of an advanced filter from -f, --filter= in the future.
grondo
added a commit
to grondo/flux-core
that referenced
this issue
Aug 9, 2024
Problem: There is no easy way to restrict the output of flux-jobs(1)
based on a set of hosts or ranks, but this is basic and useful
functionality.
Add a new `-i, --include=` optiont that takes a hostlist or idset of
targets, and adds a constraint to the JobList query that restricts
matching jobs to those that were allocated the provided targets.
Fixesflux-framework#6202
Scenario:
As a sysadmin, I'm planning to do maintenance on an arbitrary set of nodes. After draining those nodes, I'd like an easy way to return a list of jobs running on them so I can contact the job owners/see when they'll expire/kill them outright/whatever. Something like
flux jobs -i <hostlist>
would make sense.Design-wise, it arguably makes sense assume
-A
but that breaks the current paradigm.The text was updated successfully, but these errors were encountered: