Skip to content

Commit 6aef05c

Browse files
committed
fix: adjust setTimeout value for ClearOldStatusesBackgroundJob
Signed-off-by: Salvatore Martire <4652631+salmart-dev@users.noreply.github.com>
1 parent 9940566 commit 6aef05c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

apps/dav/lib/BackgroundJob/UserStatusAutomation.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,9 @@ public function __construct(
4040
) {
4141
parent::__construct($timeFactory);
4242

43-
// Interval 0 might look weird, but the last_checked is always moved
44-
// to the next time we need this and then it's 0 seconds ago.
43+
// interval = 0 might look odd, but it's intentional. last_run is set to
44+
// the user's next available time, so the job runs immediately when
45+
// that time comes.
4546
$this->setInterval(0);
4647
}
4748

apps/user_status/lib/BackgroundJob/ClearOldStatusesBackgroundJob.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@ public function __construct(
3232
) {
3333
parent::__construct($time);
3434

35-
// Run every time the cron is run
36-
$this->setInterval(0);
35+
$this->setInterval(60);
3736
}
3837

3938
/**

0 commit comments

Comments
 (0)