diff options
author | Joas Schilling <coding@schilljs.com> | 2022-01-31 17:56:43 +0100 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2022-02-07 13:54:54 +0100 |
commit | b765f79368885ace29d8cd122144a1357435cfbb (patch) | |
tree | 80681213511834e39f5b34284fd1f7550933c144 /tests | |
parent | bb55b79837a677074473e980a6b88d358a118621 (diff) | |
download | nextcloud-server-b765f79368885ace29d8cd122144a1357435cfbb.tar.gz nextcloud-server-b765f79368885ace29d8cd122144a1357435cfbb.zip |
Allow apps to specify if their background job can be delayed
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/BackgroundJob/DummyJobList.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/lib/BackgroundJob/DummyJobList.php b/tests/lib/BackgroundJob/DummyJobList.php index 97fc551d8f5..ec06203a477 100644 --- a/tests/lib/BackgroundJob/DummyJobList.php +++ b/tests/lib/BackgroundJob/DummyJobList.php @@ -75,9 +75,10 @@ class DummyJobList extends \OC\BackgroundJob\JobList { /** * get the next job in the list * + * @param bool $onlyTimeSensitive * @return IJob|null */ - public function getNext() { + public function getNext(bool $onlyTimeSensitive = true): ?IJob { if (count($this->jobs) > 0) { if ($this->last < (count($this->jobs) - 1)) { $i = $this->last + 1; |