mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 08:44:07 -04:00
(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>
This commit is contained in:
parent
138ce5303a
commit
bb75dab93a
1 changed files with 2 additions and 1 deletions
|
|
@ -53,7 +53,7 @@ class ListCommand extends Base {
|
|||
'l',
|
||||
InputOption::VALUE_OPTIONAL,
|
||||
'Number of jobs to retrieve',
|
||||
'10'
|
||||
'100'
|
||||
)->addOption(
|
||||
'offset',
|
||||
'o',
|
||||
|
|
@ -67,6 +67,7 @@ class ListCommand extends Base {
|
|||
|
||||
protected function execute(InputInterface $input, OutputInterface $output): int {
|
||||
$jobs = $this->jobList->getJobsIterator($input->getOption('class'), (int)$input->getOption('limit'), (int)$input->getOption('offset'));
|
||||
$output->writeln("Output is currently limited to first " . $input->getOption('limit') . " jobs. Specify `-l, --limit[=LIMIT]` to override.");
|
||||
$this->writeTableInOutputFormat($input, $output, $this->formatJobs($jobs));
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue