summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2022-01-31 17:56:43 +0100
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2022-02-22 10:59:19 +0000
commitc8db7d35bfaeced6536b2794829f3cabd085ff31 (patch)
treedca551b60f8e38ca239efe4bfe5da48b7d2e7999 /tests
parent69e73cbdab6ba1c3ad8aab61e801c54accd0cfb9 (diff)
downloadnextcloud-server-c8db7d35bfaeced6536b2794829f3cabd085ff31.tar.gz
nextcloud-server-c8db7d35bfaeced6536b2794829f3cabd085ff31.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;