-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
(enh) Change occ background-job:list
limit default 10->500
#40042
(enh) Change occ background-job:list
limit default 10->500
#40042
Conversation
occ background-job:list
limit default 10->100
Why just dont
|
Yes, the parameter works. I just think It's may seem a nitpick, but it also creates more mental load for what seems no net benefit from what I can tell. |
Maybe it makes sense to add a note to the output like „Showing the first X jobs“, or „Output is limited to X jobs“ to indicate that there’s a limit active. |
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.
Maybe an indication in the output if the list is complete or not would indeed be also good.
168c57c
to
42c976f
Compare
Done. Though, technically, it breaks json output format... |
34211c3
to
32bdd7f
Compare
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.
Good idea 👍
3f527ae
to
136a199
Compare
The default limit of 10 seems too conservative. Nearly all environments >100 and most <10. At the same time, this higher default limit still remains reasonable to avoid problems in really big environments. Signed-off-by: Josh Richards <josh.t.richards@gmail.com>
Co-authored-by: Daniel <mail@danielkesselberg.de> Signed-off-by: Jonas <jonas@freesources.org>
* Only print the comment when job list is truncated * Show the comment at the end so users actually see it * Format the comment as comment Signed-off-by: Jonas <jonas@freesources.org>
Signed-off-by: Jonas <jonas@freesources.org>
Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com> Signed-off-by: Jonas <jonas@freesources.org>
7fc0675
to
af4287d
Compare
occ background-job:list
limit default 10->100occ background-job:list
limit default 10->500
Summary
I'd been wondering for awhile why not all background jobs would show up under
occ background-job:list
even though all jobs were clearly being executed. Spent an embarrassing amount of time reviewing the code on this... only to realize there was a default limit of10
in the command. 🤣I understand why there is a limit (large environments) - and it can be easily overridden - but I feel 10 is bit too conservative for a default. Being this low means the job list is nearly always incomplete in the default execution mode, which makes the overriding of the default nearly a 100% certainty in day to day use.
Nearly all environments >10 and many (most?) <100 jobs. This changes the default to 100 so fewer have to feel as silly as me. 😃 And a lot more people get all their jobs shown by default. At the same time, this higher default still remains conservative enough to avoid problems in really large environments.
TODO
Checklist
[ ] Screenshots before/after for front-end changes[ ] Backports requested where applicable (ex: critical bugfixes)