From 81bf9aba2ac8e2c52c1b54f9d1016a7f4a58a3ac Mon Sep 17 00:00:00 2001 From: Daniel Kesselberg Date: Wed, 1 Nov 2023 17:13:09 +0100 Subject: [PATCH] feat: mark background job for storage statistics as time insensitive Signed-off-by: Daniel Kesselberg --- lib/Jobs/UpdateStorageStats.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/Jobs/UpdateStorageStats.php b/lib/Jobs/UpdateStorageStats.php index f7fae705..0d1fa484 100644 --- a/lib/Jobs/UpdateStorageStats.php +++ b/lib/Jobs/UpdateStorageStats.php @@ -28,6 +28,7 @@ use OCA\ServerInfo\StorageStatistics; use OCP\AppFramework\Utility\ITimeFactory; +use OCP\BackgroundJob\IJob; use OCP\BackgroundJob\TimedJob; use OCP\IConfig; @@ -35,6 +36,7 @@ class UpdateStorageStats extends TimedJob { private StorageStatistics $storageStatistics; public function __construct(ITimeFactory $time, StorageStatistics $storageStatistics, IConfig $config) { + $this->setTimeSensitivity(IJob::TIME_INSENSITIVE); $this->setInterval((int)$config->getAppValue('serverinfo', 'job_interval_storage_stats', (string)(60 * 60 * 3))); parent::__construct($time);