diff options
author | provokateurin <kate@provokateurin.de> | 2024-10-07 17:36:55 +0200 |
---|---|---|
committer | provokateurin <kate@provokateurin.de> | 2024-10-08 11:26:53 +0200 |
commit | 54ec472d9a2c8a3d3c5daf0594bb887b11a81614 (patch) | |
tree | 98660989fcc8c32c938491e7da51ea3afbea5fa3 /lib/private/TextProcessing | |
parent | d7aff6c1500fb85269945064d4c34085c4240425 (diff) | |
download | nextcloud-server-54ec472d9a2c8a3d3c5daf0594bb887b11a81614.tar.gz nextcloud-server-54ec472d9a2c8a3d3c5daf0594bb887b11a81614.zip |
fix(BackgroundJobs): Adjust intervals and time sensitivities
Signed-off-by: provokateurin <kate@provokateurin.de>
Diffstat (limited to 'lib/private/TextProcessing')
-rw-r--r-- | lib/private/TextProcessing/RemoveOldTasksBackgroundJob.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/private/TextProcessing/RemoveOldTasksBackgroundJob.php b/lib/private/TextProcessing/RemoveOldTasksBackgroundJob.php index 4a336d56077..be5e4127d08 100644 --- a/lib/private/TextProcessing/RemoveOldTasksBackgroundJob.php +++ b/lib/private/TextProcessing/RemoveOldTasksBackgroundJob.php @@ -17,7 +17,7 @@ use OCP\DB\Exception; use Psr\Log\LoggerInterface; class RemoveOldTasksBackgroundJob extends TimedJob { - public const MAX_TASK_AGE_SECONDS = 60 * 50 * 24 * 7; // 1 week + public const MAX_TASK_AGE_SECONDS = 60 * 60 * 24 * 7; // 1 week public function __construct( ITimeFactory $timeFactory, @@ -26,6 +26,7 @@ class RemoveOldTasksBackgroundJob extends TimedJob { ) { parent::__construct($timeFactory); $this->setInterval(60 * 60 * 24); + $this->setTimeSensitivity(self::TIME_INSENSITIVE); } /** |