Skip to content

Commit 490c8c0

Browse files
committed
Use the new option to signaling insensitivity
Signed-off-by: Joas Schilling <coding@schilljs.com>
1 parent e2927eb commit 490c8c0

File tree

6 files changed

+13
-1
lines changed

6 files changed

+13
-1
lines changed

apps/contactsinteraction/lib/BackgroundJob/CleanupJob.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727

2828
use OCA\ContactsInteraction\Db\RecentContactMapper;
2929
use OCP\AppFramework\Utility\ITimeFactory;
30+
use OCP\BackgroundJob\IJob;
3031
use OCP\BackgroundJob\TimedJob;
3132

3233
class CleanupJob extends TimedJob {
@@ -38,7 +39,8 @@ public function __construct(ITimeFactory $time,
3839
RecentContactMapper $mapper) {
3940
parent::__construct($time);
4041

41-
$this->setInterval(12 * 60 * 60);
42+
$this->setInterval(24 * 60 * 60);
43+
$this->setTimeSensitivity(IJob::TIME_INSENSITIVE);
4244

4345
$this->mapper = $mapper;
4446
}

apps/dav/lib/BackgroundJob/UploadCleanup.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929

3030
use OC\User\NoUserException;
3131
use OCP\AppFramework\Utility\ITimeFactory;
32+
use OCP\BackgroundJob\IJob;
3233
use OCP\BackgroundJob\IJobList;
3334
use OCP\BackgroundJob\TimedJob;
3435
use OCP\Files\File;
@@ -51,6 +52,7 @@ public function __construct(ITimeFactory $time, IRootFolder $rootFolder, IJobLis
5152

5253
// Run once a day
5354
$this->setInterval(60 * 60 * 24);
55+
$this->setTimeSensitivity(IJob::TIME_INSENSITIVE);
5456
}
5557

5658
protected function run($argument) {

apps/files_external/lib/BackgroundJob/CredentialsCleanup.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
use OCA\Files_External\Lib\StorageConfig;
3030
use OCA\Files_External\Service\UserGlobalStoragesService;
3131
use OCP\AppFramework\Utility\ITimeFactory;
32+
use OCP\BackgroundJob\IJob;
3233
use OCP\BackgroundJob\TimedJob;
3334
use OCP\Security\ICredentialsManager;
3435
use OCP\IUser;
@@ -53,6 +54,7 @@ public function __construct(
5354

5455
// run every day
5556
$this->setInterval(24 * 60 * 60);
57+
$this->setTimeSensitivity(IJob::TIME_INSENSITIVE);
5658
}
5759

5860
protected function run($argument) {

apps/files_sharing/lib/ExpireSharesJob.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
namespace OCA\Files_Sharing;
2626

2727
use OCP\AppFramework\Utility\ITimeFactory;
28+
use OCP\BackgroundJob\IJob;
2829
use OCP\BackgroundJob\TimedJob;
2930
use OCP\IDBConnection;
3031
use OCP\Share\Exceptions\ShareNotFound;
@@ -50,6 +51,7 @@ public function __construct(ITimeFactory $time, IManager $shareManager, IDBConne
5051

5152
// Run once a day
5253
$this->setInterval(24 * 60 * 60);
54+
$this->setTimeSensitivity(IJob::TIME_INSENSITIVE);
5355
}
5456

5557

apps/twofactor_backupcodes/lib/BackgroundJob/RememberBackupCodesJob.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828

2929
use OCP\AppFramework\Utility\ITimeFactory;
3030
use OCP\Authentication\TwoFactorAuth\IRegistry;
31+
use OCP\BackgroundJob\IJob;
3132
use OCP\BackgroundJob\IJobList;
3233
use OCP\BackgroundJob\TimedJob;
3334
use OCP\IUserManager;
@@ -60,6 +61,7 @@ public function __construct(IRegistry $registry,
6061
$this->jobList = $jobList;
6162

6263
$this->setInterval(60 * 60 * 24 * 14);
64+
$this->setTimeSensitivity(IJob::TIME_INSENSITIVE);
6365
}
6466

6567
protected function run($argument) {

lib/private/Security/Bruteforce/CleanupJob.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
namespace OC\Security\Bruteforce;
2727

2828
use OCP\AppFramework\Utility\ITimeFactory;
29+
use OCP\BackgroundJob\IJob;
2930
use OCP\BackgroundJob\TimedJob;
3031
use OCP\DB\QueryBuilder\IQueryBuilder;
3132
use OCP\IDBConnection;
@@ -41,6 +42,7 @@ public function __construct(ITimeFactory $time, IDBConnection $connection) {
4142

4243
// Run once a day
4344
$this->setInterval(3600 * 24);
45+
$this->setTimeSensitivity(IJob::TIME_INSENSITIVE);
4446
}
4547

4648
protected function run($argument) {

0 commit comments

Comments
 (0)