aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
authorMarcel Klehr <mklehr@gmx.net>2023-12-20 14:29:44 +0100
committerJulien Veyssier <julien-nc@posteo.net>2024-05-02 16:43:41 +0200
commit352d79deeeb12e4544d1b7e9f791a3c11afc12e4 (patch)
treef8a38cb32467be425d9a4a9a9ff5c03f539175ae /lib/public
parent993398b88a2dbb148b008b25abba3f6761dd0668 (diff)
downloadnextcloud-server-352d79deeeb12e4544d1b7e9f791a3c11afc12e4.tar.gz
nextcloud-server-352d79deeeb12e4544d1b7e9f791a3c11afc12e4.zip
fix(bg-jobs): fix psalm issues
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
Diffstat (limited to 'lib/public')
-rw-r--r--lib/public/BackgroundJob/IJobList.php12
1 files changed, 10 insertions, 2 deletions
diff --git a/lib/public/BackgroundJob/IJobList.php b/lib/public/BackgroundJob/IJobList.php
index 07b5ebcf48b..e2e9eca9415 100644
--- a/lib/public/BackgroundJob/IJobList.php
+++ b/lib/public/BackgroundJob/IJobList.php
@@ -110,9 +110,9 @@ interface IJobList {
/**
* get the next job in the list
*
- * @since 7.0.0 - In 24.0.0 parameter $onlyTimeSensitive got added
+ * @since 7.0.0 - In 24.0.0 parameter $onlyTimeSensitive got added; In 29.0.0 parameter $jobClass got added
*/
- public function getNext(bool $onlyTimeSensitive = false): ?IJob;
+ public function getNext(bool $onlyTimeSensitive = false, string $jobClass = null): ?IJob;
/**
* @since 7.0.0
@@ -168,4 +168,12 @@ interface IJobList {
* @since 27.0.0
*/
public function hasReservedJob(?string $className): bool;
+
+ /**
+ * Returns a count of jobs per Job class
+ *
+ * @return list<array{class:class-string, count:int}>
+ * @since 29.0.0
+ */
+ public function countByClass(): array;
}