Skip to content

Commit 34211c3

Browse files
joshtrichardsmejo-
authored andcommitted
(enh) Change occ background-job:list limit default 10->100
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>
1 parent 281ac50 commit 34211c3

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

core/Command/Background/ListCommand.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ protected function configure(): void {
5353
'l',
5454
InputOption::VALUE_OPTIONAL,
5555
'Number of jobs to retrieve',
56-
'10'
56+
'100'
5757
)->addOption(
5858
'offset',
5959
'o',
@@ -67,6 +67,7 @@ protected function configure(): void {
6767

6868
protected function execute(InputInterface $input, OutputInterface $output): int {
6969
$jobs = $this->jobList->getJobsIterator($input->getOption('class'), (int)$input->getOption('limit'), (int)$input->getOption('offset'));
70+
$output->writeln("Output is currently limited to first " . $input->getOption('limit') . " jobs. Specify `-l, --limit[=LIMIT]` to override.");
7071
$this->writeTableInOutputFormat($input, $output, $this->formatJobs($jobs));
7172
return 0;
7273
}

0 commit comments

Comments
 (0)