]> source.dussan.org Git - nextcloud-server.git/commitdiff
Use the new option to signaling insensitivity 30945/head
authorJoas Schilling <coding@schilljs.com>
Mon, 31 Jan 2022 20:23:07 +0000 (21:23 +0100)
committerJoas Schilling <coding@schilljs.com>
Mon, 7 Feb 2022 12:54:54 +0000 (13:54 +0100)
Signed-off-by: Joas Schilling <coding@schilljs.com>
apps/contactsinteraction/lib/BackgroundJob/CleanupJob.php
apps/dav/lib/BackgroundJob/UploadCleanup.php
apps/files_external/lib/BackgroundJob/CredentialsCleanup.php
apps/files_sharing/lib/ExpireSharesJob.php
apps/twofactor_backupcodes/lib/BackgroundJob/RememberBackupCodesJob.php
lib/private/Security/Bruteforce/CleanupJob.php

index 2a48452d42640f03d7c1130e7f5cfa9a6e4146e8..fd370ce60e538e4ec0d1f83bd7785e09b3ac8dee 100644 (file)
@@ -27,6 +27,7 @@ namespace OCA\ContactsInteraction\BackgroundJob;
 
 use OCA\ContactsInteraction\Db\RecentContactMapper;
 use OCP\AppFramework\Utility\ITimeFactory;
+use OCP\BackgroundJob\IJob;
 use OCP\BackgroundJob\TimedJob;
 
 class CleanupJob extends TimedJob {
@@ -38,7 +39,8 @@ class CleanupJob extends TimedJob {
                                                                RecentContactMapper $mapper) {
                parent::__construct($time);
 
-               $this->setInterval(12 * 60 * 60);
+               $this->setInterval(24 * 60 * 60);
+               $this->setTimeSensitivity(IJob::TIME_INSENSITIVE);
 
                $this->mapper = $mapper;
        }
index 70f4d6b95650fca879a0f9a1e7dfaa2eb19c75d2..76906becb54c23f702bad95b3793569a29c4a955 100644 (file)
@@ -29,6 +29,7 @@ namespace OCA\DAV\BackgroundJob;
 
 use OC\User\NoUserException;
 use OCP\AppFramework\Utility\ITimeFactory;
+use OCP\BackgroundJob\IJob;
 use OCP\BackgroundJob\IJobList;
 use OCP\BackgroundJob\TimedJob;
 use OCP\Files\File;
@@ -51,6 +52,7 @@ class UploadCleanup extends TimedJob {
 
                // Run once a day
                $this->setInterval(60 * 60 * 24);
+               $this->setTimeSensitivity(IJob::TIME_INSENSITIVE);
        }
 
        protected function run($argument) {
index 07b66e2ecb646c5b8d5f3903981753cf874c11b7..138d4d7de2ddccaea3fc36cd7ea1358b2052830b 100644 (file)
@@ -29,6 +29,7 @@ use OCA\Files_External\Lib\Auth\Password\LoginCredentials;
 use OCA\Files_External\Lib\StorageConfig;
 use OCA\Files_External\Service\UserGlobalStoragesService;
 use OCP\AppFramework\Utility\ITimeFactory;
+use OCP\BackgroundJob\IJob;
 use OCP\BackgroundJob\TimedJob;
 use OCP\Security\ICredentialsManager;
 use OCP\IUser;
@@ -53,6 +54,7 @@ class CredentialsCleanup extends TimedJob {
 
                // run every day
                $this->setInterval(24 * 60 * 60);
+               $this->setTimeSensitivity(IJob::TIME_INSENSITIVE);
        }
 
        protected function run($argument) {
index 1e56602a0bf7abd2cf2ad9909c8f877950c19bad..dd0979e4b0be128451916a804ad6a9f6f5664c59 100644 (file)
@@ -25,6 +25,7 @@
 namespace OCA\Files_Sharing;
 
 use OCP\AppFramework\Utility\ITimeFactory;
+use OCP\BackgroundJob\IJob;
 use OCP\BackgroundJob\TimedJob;
 use OCP\IDBConnection;
 use OCP\Share\Exceptions\ShareNotFound;
@@ -50,6 +51,7 @@ class ExpireSharesJob extends TimedJob {
 
                // Run once a day
                $this->setInterval(24 * 60 * 60);
+               $this->setTimeSensitivity(IJob::TIME_INSENSITIVE);
        }
 
 
index 51428f9b99600cb83a1f79e624613f36a5109723..3eed1bb8dead621f54064d0c7d4083a6001fb05f 100644 (file)
@@ -28,6 +28,7 @@ namespace OCA\TwoFactorBackupCodes\BackgroundJob;
 
 use OCP\AppFramework\Utility\ITimeFactory;
 use OCP\Authentication\TwoFactorAuth\IRegistry;
+use OCP\BackgroundJob\IJob;
 use OCP\BackgroundJob\IJobList;
 use OCP\BackgroundJob\TimedJob;
 use OCP\IUserManager;
@@ -60,6 +61,7 @@ class RememberBackupCodesJob extends TimedJob {
                $this->jobList = $jobList;
 
                $this->setInterval(60 * 60 * 24 * 14);
+               $this->setTimeSensitivity(IJob::TIME_INSENSITIVE);
        }
 
        protected function run($argument) {
index 1e5f83360d5a4bcad7d9c9037414f26653b96745..6faf853760a056843829838e5425e142f9abc9c5 100644 (file)
@@ -26,6 +26,7 @@ declare(strict_types=1);
 namespace OC\Security\Bruteforce;
 
 use OCP\AppFramework\Utility\ITimeFactory;
+use OCP\BackgroundJob\IJob;
 use OCP\BackgroundJob\TimedJob;
 use OCP\DB\QueryBuilder\IQueryBuilder;
 use OCP\IDBConnection;
@@ -41,6 +42,7 @@ class CleanupJob extends TimedJob {
 
                // Run once a day
                $this->setInterval(3600 * 24);
+               $this->setTimeSensitivity(IJob::TIME_INSENSITIVE);
        }
 
        protected function run($argument) {