Skip to content

Commit

Permalink
fix(BackgroundJob): Set expire job intervals to 30 minutes
Browse files Browse the repository at this point in the history
Signed-off-by: provokateurin <[email protected]>
  • Loading branch information
provokateurin committed Oct 7, 2024
1 parent ffcd9c0 commit 4f743f4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/BackgroundJob/ExpireGroupTrash.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions lib/BackgroundJob/ExpireGroupVersions.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 4f743f4

Please sign in to comment.