-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
job-info: filter job list inactive results by name #2818
Conversation
Thanks for putting this together @chu11! Generally LGTM!
Just an idea, I don't know how good it is: if you want to reduce the probability of people using the name parameter and then removing it out from under them when a more general solution comes along, maybe we just add the parameter to the service and expose it via Python but not C? AFAIK, we currently only have a use-case in python, and the python function declaration is a little more flexible than C so we can workaround leaving the optional "name" argument in the function declaration for a bit. |
Good point @SteVwonder. I don't think we need to make a C API binding for every single service RPC anyway. Like you said, the C functions are inflexible and it is annoying to have to break ABI when we change or add some parameters in the RPC. Especially while we're focusing on functionality to meet big milestones, we should evaluate if we really need a C wrapper for every service RPC that we add. |
Sounds good! Lets go with just the Python binding. Will update w/ tests. |
c1b7e4b
to
945bb3d
Compare
re-pushed, only adding the python binding, and a simple test. Also cleaned up a few tests along the way. |
2f2dd7f
to
636af61
Compare
Hmmm, asan builder hung ... noticed
Dunno if related to the hang or not.
Perhaps timeouts of 1 second are too short. I'll increase them a bit. |
re-pushed, increasing all the timeouts in |
Just to clarify the semantics of |
Yes. If the user doesn't specify a job name, then it is the first element of the command line. But only the |
rebased and re-pushed, now that #2828 is merged |
Yep! That's perfect. Just wanted to make sure that if you set the name manually, you could then filter based on that. |
I went ahead and rebased #2804 on top of this and then included the new |
rebased, fixed conflict with #2805, and re-pushed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Minor nit below:
re-pushed, fixing Stephens nit |
re-pushed, fixing python checker's nit |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Remove job submissions that are unnecessary. Add helper comment.
Support job name filter on job-info.list-inactive service. Fixes flux-framework#2817
Add optional name to job_list_inactive() to filter results based on job name.
Codecov Report
@@ Coverage Diff @@
## master #2818 +/- ##
==========================================
- Coverage 81% 80.98% -0.02%
==========================================
Files 250 250
Lines 39511 39513 +2
==========================================
- Hits 32004 32000 -4
- Misses 7507 7513 +6
|
Restarted a timedout builder. Unfortunately, the logs weren't that useful, but I saved a copy in case someone wants to take a look: https://gist.github.com/SteVwonder/643ed4b068c6c1017e318bf9a0356986 |
restarted hung builder, which was "Ubuntu: py3.8 distcheck" one. Same as the one I restarted on #2838, and I think the same one @SteVwonder restarted. hopefully is not a pattern emerging. |
Yeah, I'm noticing a lot more hangs in the past 24 hrs. Trying to see if I can reproduce locally or on @trws timeout branch. |
I just thought I'd throw this up for comments before I write tests. (For Issue #2817)
it's clearly just a hack for the need mentioned in Flux tree helper flux-sched#621
There's nothing wrong with it per se, but am concerned with the long term. What if we need to filter on more than this. Perhaps there should be something more extendable for filtering, for this and normal job list? Hypothetically something like
filter="name:hostname,userid:13543"
?But the above would take time. Do we consider this an acceptable short term solution?