Skip to content

Commit 4f743f4

Browse files
committed
fix(BackgroundJob): Set expire job intervals to 30 minutes
Signed-off-by: provokateurin <[email protected]>
1 parent ffcd9c0 commit 4f743f4

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

β€Žlib/BackgroundJob/ExpireGroupTrash.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ public function __construct(
2222
ITimeFactory $timeFactory,
2323
) {
2424
parent::__construct($timeFactory);
25-
// Run once per hour
26-
$this->setInterval(60 * 60);
25+
// Run every 30 minutes
26+
$this->setInterval(60 * 30);
2727
}
2828

2929
protected function run(mixed $argument): void {

β€Žlib/BackgroundJob/ExpireGroupVersions.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ public function __construct(
2626
) {
2727
parent::__construct($time);
2828

29-
// Run once per hour
30-
$this->setInterval(60 * 60);
29+
// Run every 30 minutes
30+
$this->setInterval(60 * 30);
3131
// But don't run if still running
3232
$this->setAllowParallelRuns(false);
3333
}

0 commit comments

Comments
Β (0)