mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 01:30:50 -04:00
fix: adjust setTimeout value for ClearOldStatusesBackgroundJob
Signed-off-by: Salvatore Martire <4652631+salmart-dev@users.noreply.github.com>
This commit is contained in:
parent
dda91c415f
commit
5ede903d13
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