From 4f743f4cea478943081fec803dbc3b7500df28e8 Mon Sep 17 00:00:00 2001 From: provokateurin Date: Mon, 7 Oct 2024 08:04:50 +0200 Subject: [PATCH] fix(BackgroundJob): Set expire job intervals to 30 minutes Signed-off-by: provokateurin --- lib/BackgroundJob/ExpireGroupTrash.php | 4 ++-- lib/BackgroundJob/ExpireGroupVersions.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/BackgroundJob/ExpireGroupTrash.php b/lib/BackgroundJob/ExpireGroupTrash.php index f42b06e2b..c6b650fd4 100644 --- a/lib/BackgroundJob/ExpireGroupTrash.php +++ b/lib/BackgroundJob/ExpireGroupTrash.php @@ -22,8 +22,8 @@ public function __construct( ITimeFactory $timeFactory, ) { parent::__construct($timeFactory); - // Run once per hour - $this->setInterval(60 * 60); + // Run every 30 minutes + $this->setInterval(60 * 30); } protected function run(mixed $argument): void { diff --git a/lib/BackgroundJob/ExpireGroupVersions.php b/lib/BackgroundJob/ExpireGroupVersions.php index 96c7461f1..8021eee67 100644 --- a/lib/BackgroundJob/ExpireGroupVersions.php +++ b/lib/BackgroundJob/ExpireGroupVersions.php @@ -26,8 +26,8 @@ public function __construct( ) { parent::__construct($time); - // Run once per hour - $this->setInterval(60 * 60); + // Run every 30 minutes + $this->setInterval(60 * 30); // But don't run if still running $this->setAllowParallelRuns(false); }