aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2022-01-31 17:56:43 +0100
committerJoas Schilling <coding@schilljs.com>2022-02-07 13:54:54 +0100
commitb765f79368885ace29d8cd122144a1357435cfbb (patch)
tree80681213511834e39f5b34284fd1f7550933c144 /tests
parentbb55b79837a677074473e980a6b88d358a118621 (diff)
downloadnextcloud-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.php3
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;