aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
authorJulien Veyssier <julien-nc@posteo.net>2024-07-15 13:30:59 +0200
committerJulien Veyssier <julien-nc@posteo.net>2024-07-23 17:12:38 +0200
commitc120a64ba2031817113a0194fd6f2337a4dc420b (patch)
treea3c9734e2dcc5a86502a2768456b9ce34c556b3c /lib/public
parentdf086a8c207ec6765a94955f6638fa7aacf4c06a (diff)
downloadnextcloud-server-c120a64ba2031817113a0194fd6f2337a4dc420b.tar.gz
nextcloud-server-c120a64ba2031817113a0194fd6f2337a4dc420b.zip
feat(taskprocessing): add occ commands to list tasks and compute stats
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
Diffstat (limited to 'lib/public')
-rw-r--r--lib/public/TaskProcessing/IManager.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/public/TaskProcessing/IManager.php b/lib/public/TaskProcessing/IManager.php
index c68ad1afbac..33dfcdeb7c7 100644
--- a/lib/public/TaskProcessing/IManager.php
+++ b/lib/public/TaskProcessing/IManager.php
@@ -141,6 +141,22 @@ interface IManager {
public function getUserTasks(?string $userId, ?string $taskTypeId = null, ?string $customId = null): array;
/**
+ * @param string|null $userId The user id that scheduled the task
+ * @param string|null $taskTypeId The task type id to filter by
+ * @param string|null $customId
+ * @param int|null $status The task status
+ * @param int|null $scheduleAfter Minimum schedule time filter
+ * @param int|null $endedBefore Maximum ending time filter
+ * @return list<Task>
+ * @throws Exception If the query failed
+ * @throws NotFoundException If the task could not be found
+ * @since 30.0.0
+ */
+ public function getTasks(
+ ?string $userId, ?string $taskTypeId = null, ?string $customId = null, ?int $status = null, ?int $scheduleAfter = null, ?int $endedBefore = null
+ ): array;
+
+ /**
* @param string|null $userId
* @param string $appId
* @param string|null $customId