Browse Source
Use the new option to signaling insensitivity
Signed-off-by: Joas Schilling <coding@schilljs.com>
pull/30945/head
Joas Schilling
4 years ago
No known key found for this signature in database
GPG Key ID: 7076EA9751AACDDA
6 changed files with
13 additions and
1 deletions
-
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
|
|
|
@ -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; |
|
|
|
} |
|
|
|
|
|
|
|
@ -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) { |
|
|
|
|
|
|
|
@ -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) { |
|
|
|
|
|
|
|
@ -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); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -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) { |
|
|
|
|
|
|
|
@ -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) { |
|
|
|
|