mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
fix(TaskProcessing): Fix occ commands to cast strings to integer
fixes #57111 Signed-off-by: Marcel Klehr <mklehr@gmx.net>
This commit is contained in:
parent
2c718d81e5
commit
1f12126715
2 changed files with 4 additions and 4 deletions
|
|
@ -46,7 +46,7 @@ class Cleanup extends Base {
|
|||
}
|
||||
|
||||
protected function execute(InputInterface $input, OutputInterface $output): int {
|
||||
$maxAgeSeconds = $input->getArgument('maxAgeSeconds') ?? Manager::MAX_TASK_AGE_SECONDS;
|
||||
$maxAgeSeconds = (int)($input->getArgument('maxAgeSeconds') ?? Manager::MAX_TASK_AGE_SECONDS);
|
||||
$output->writeln('<comment>Cleanup up tasks older than ' . $maxAgeSeconds . ' seconds and the related output files</comment>');
|
||||
|
||||
$taskIdsToCleanup = [];
|
||||
|
|
|
|||
|
|
@ -81,9 +81,9 @@ class Statistics extends Base {
|
|||
$type = $input->getOption('type');
|
||||
$appId = $input->getOption('appId');
|
||||
$customId = $input->getOption('customId');
|
||||
$status = $input->getOption('status');
|
||||
$scheduledAfter = $input->getOption('scheduledAfter');
|
||||
$endedBefore = $input->getOption('endedBefore');
|
||||
$status = $input->getOption('status') !== null ? (int)$input->getOption('status') : null;
|
||||
$scheduledAfter = $input->getOption('scheduledAfter') !== null ? (int)$input->getOption('scheduledAfter') : null;
|
||||
$endedBefore = $input->getOption('endedBefore') !== null ? (int)$input->getOption('endedBefore') : null;
|
||||
|
||||
$tasks = $this->taskProcessingManager->getTasks($userIdFilter, $type, $appId, $customId, $status, $scheduledAfter, $endedBefore);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue