diff options
author | Joas Schilling <coding@schilljs.com> | 2022-01-31 17:56:43 +0100 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2022-02-22 11:56:17 +0100 |
commit | c43730238fb648b2943762da172f55cbfd28114d (patch) | |
tree | aa6c2c48a02ccc688e0eb67408764c8f10553368 /lib/public/BackgroundJob/IJobList.php | |
parent | 26990666cb67356e9361b4a57a5da9ab8e846461 (diff) | |
download | nextcloud-server-c43730238fb648b2943762da172f55cbfd28114d.tar.gz nextcloud-server-c43730238fb648b2943762da172f55cbfd28114d.zip |
Allow apps to specify if their background job can be delayed
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/public/BackgroundJob/IJobList.php')
-rw-r--r-- | lib/public/BackgroundJob/IJobList.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/public/BackgroundJob/IJobList.php b/lib/public/BackgroundJob/IJobList.php index 299d6725229..2ce55826c8e 100644 --- a/lib/public/BackgroundJob/IJobList.php +++ b/lib/public/BackgroundJob/IJobList.php @@ -85,10 +85,11 @@ interface IJobList { /** * get the next job in the list * + * @param bool $onlyTimeSensitive * @return \OCP\BackgroundJob\IJob|null - * @since 7.0.0 + * @since 7.0.0 - In 24.0.0 parameter $onlyTimeSensitive got added */ - public function getNext(); + public function getNext(bool $onlyTimeSensitive = false): ?IJob; /** * @param int $id |