(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. |
come-nc
left a comment
There was a problem hiding this comment.
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
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 <[email protected]>
Co-authored-by: Daniel <[email protected]> Signed-off-by: Jonas <[email protected]>
* 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 <[email protected]>
Signed-off-by: Jonas <[email protected]>
Co-authored-by: Côme Chilliet <[email protected]> Signed-off-by: Jonas <[email protected]>
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:listeven 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 of10in 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)