Merge pull request #53791 from nextcloud/backport/53418/stable30

[stable30] Adjust interval for ClearOldStatusesBackgroundJob
This commit is contained in:
Salvatore Martire 2025-07-22 13:38:18 +02:00 committed by GitHub
commit cf0160bf67
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View file

@ -38,8 +38,9 @@ class UserStatusAutomation extends TimedJob {
private IUserManager $userManager) {
parent::__construct($timeFactory);
// Interval 0 might look weird, but the last_checked is always moved
// to the next time we need this and then it's 0 seconds ago.
// interval = 0 might look odd, but it's intentional. last_run is set to
// the user's next available time, so the job runs immediately when
// that time comes.
$this->setInterval(0);
}

View file

@ -34,8 +34,7 @@ class ClearOldStatusesBackgroundJob extends TimedJob {
parent::__construct($time);
$this->mapper = $mapper;
// Run every time the cron is run
$this->setInterval(0);
$this->setInterval(60);
}
/**