diff options
author | Josh Richards <josh.t.richards@gmail.com> | 2023-08-25 09:20:27 -0400 |
---|---|---|
committer | Jonas <jonas@freesources.org> | 2023-11-14 21:04:27 +0100 |
commit | bb75dab93a639b5fabb1f13b587c22719be95da8 (patch) | |
tree | fbf4d487e72fdb5f3f35149b1042e83956bcec5c /core/Command | |
parent | 138ce5303ad09205e20e1d9781779f23f8d0838a (diff) | |
download | nextcloud-server-bb75dab93a639b5fabb1f13b587c22719be95da8.tar.gz nextcloud-server-bb75dab93a639b5fabb1f13b587c22719be95da8.zip |
(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>
Diffstat (limited to 'core/Command')
-rw-r--r-- | core/Command/Background/ListCommand.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/Command/Background/ListCommand.php b/core/Command/Background/ListCommand.php index a7b98a037a8..0ba2b8a2194 100644 --- a/core/Command/Background/ListCommand.php +++ b/core/Command/Background/ListCommand.php @@ -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; } |