Closed Cook-I-T closed 3 months ago
True, that seems to be a bug.
Feel free to investigate and create a PR :) I'm not sure when I have the time to look at this.
I looked at the code in pueue/src/client/query/
but since I never worked with Rust (and never heard of pest before) I sadly can't help with fixing that bug :(
I did figure out that increasing the number somehow makes lines appear again (so for example first 2
shows 1 line of "Running"), but it's not consistent.
For my usecase however I did realise that columns=Status status=running
is already limiting the lines of output to the "parallel" count of the group, which makes the magical performance & efficiency I hoped to gain from first 1
kinda irrelevant. I just added a quick head -n 1
after grep and I'm back to the "0 or 1" output I want :)
Thanks for developing this amazing tool, if there's a way to support this project outside of PRs I'd gladly help :)
Vielen Dank aus Österreich ^_^
submitted a fix here https://github.com/Nukesor/pueue/pull/512
submitted a fix here #512
Thanks for fixing my bug report! I installed rust, compiled your fork and from what I can see, it fixes the problem :) Now it just requires @Nukesor's approval and another bug is squashed ^_^
I was just compiling the " fix-group-filtering" branch when it got merged, (again) from what I see it fixes the issue, looking at the changes I again have no idea how it works but it does :) I'm not sure if I should close this issue or not so I'll just leave it...
Thanks again for all the good work! ^_^
Describe the bug
I tried to check in a Bash script if there's still a task running in a certain group with the bash command
pueue status -g group columns=Status status=running first 1 | grep 'Running' | wc -l
I expect that when a group still has any running task it outputs one row of "Running" which gets converted to a 1, with nothing running outputting 0.Steps to reproduce
pueue status -g {GROUPNAME} columns=Status status=running first 1
Debug logs (if relevant)
Operating system
Debian 11
Pueue version
3.3.3
Additional context
No response