mirror of
https://github.com/nextcloud/server.git
synced 2026-06-10 01:00:50 -04:00
Merge pull request #53791 from nextcloud/backport/53418/stable30
[stable30] Adjust interval for ClearOldStatusesBackgroundJob
This commit is contained in:
commit
cf0160bf67
2 changed files with 4 additions and 4 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue