fix: adjust setTimeout value for ClearOldStatusesBackgroundJob

Signed-off-by: Salvatore Martire <4652631+salmart-dev@users.noreply.github.com>
This commit is contained in:
Salvatore Martire 2025-06-06 16:22:01 +02:00
parent dda91c415f
commit 5ede903d13
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);
}
/**