aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/TextProcessing/RemoveOldTasksBackgroundJob.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/TextProcessing/RemoveOldTasksBackgroundJob.php')
-rw-r--r--lib/private/TextProcessing/RemoveOldTasksBackgroundJob.php3
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);
}
/**