From df11aa9efc21895cba716dd23eb71969e8532393 Mon Sep 17 00:00:00 2001 From: Julien Veyssier Date: Tue, 23 Jul 2024 11:06:42 +0200 Subject: feat(taskprocessing): add appId filter to taskprocessing occ commands Signed-off-by: Julien Veyssier --- core/Command/TaskProcessing/Statistics.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'core/Command/TaskProcessing/Statistics.php') diff --git a/core/Command/TaskProcessing/Statistics.php b/core/Command/TaskProcessing/Statistics.php index 13a4c93d036..a3dc9ee0254 100644 --- a/core/Command/TaskProcessing/Statistics.php +++ b/core/Command/TaskProcessing/Statistics.php @@ -35,6 +35,12 @@ class Statistics extends Base { InputOption::VALUE_OPTIONAL, 'only get the tasks for one task type' ) + ->addOption( + 'appId', + null, + InputOption::VALUE_OPTIONAL, + 'only get the tasks for one app ID' + ) ->addOption( 'customId', null, @@ -70,12 +76,13 @@ class Statistics extends Base { $userIdFilter = null; } $type = $input->getOption('type'); + $appId = $input->getOption('appId'); $customId = $input->getOption('customId'); $status = $input->getOption('status'); $scheduledAfter = $input->getOption('scheduledAfter'); $endedBefore = $input->getOption('endedBefore'); - $tasks = $this->taskProcessingManager->getTasks($userIdFilter, $type, $customId, $status, $scheduledAfter, $endedBefore); + $tasks = $this->taskProcessingManager->getTasks($userIdFilter, $type, $appId, $customId, $status, $scheduledAfter, $endedBefore); $stats = ['Number of tasks' => count($tasks)]; -- cgit v1.2.3