aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSalvatore Martire <4652631+salmart-dev@users.noreply.github.com>2025-06-06 16:22:01 +0200
committerSalvatore Martire <4652631+salmart-dev@users.noreply.github.com>2025-07-22 10:41:43 +0200
commit6aef05c79bec3c578e2b773a14f595b4cb725f99 (patch)
tree8435093b03feaee59ee4b7240454d23c088f69ce
parent99405662dab947d04ba0c9785830666e497e6fb8 (diff)
downloadnextcloud-server-backport/53418/stable31.tar.gz
nextcloud-server-backport/53418/stable31.zip
fix: adjust setTimeout value for ClearOldStatusesBackgroundJobbackport/53418/stable31
Signed-off-by: Salvatore Martire <4652631+salmart-dev@users.noreply.github.com>
-rw-r--r--apps/dav/lib/BackgroundJob/UserStatusAutomation.php5
-rw-r--r--apps/user_status/lib/BackgroundJob/ClearOldStatusesBackgroundJob.php3
2 files changed, 4 insertions, 4 deletions
diff --git a/apps/dav/lib/BackgroundJob/UserStatusAutomation.php b/apps/dav/lib/BackgroundJob/UserStatusAutomation.php
index 7cc56698a9f..027b3349802 100644
--- a/apps/dav/lib/BackgroundJob/UserStatusAutomation.php
+++ b/apps/dav/lib/BackgroundJob/UserStatusAutomation.php
@@ -40,8 +40,9 @@ class UserStatusAutomation extends TimedJob {
) {
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);
}
diff --git a/apps/user_status/lib/BackgroundJob/ClearOldStatusesBackgroundJob.php b/apps/user_status/lib/BackgroundJob/ClearOldStatusesBackgroundJob.php
index 331d88de747..51a9c623a03 100644
--- a/apps/user_status/lib/BackgroundJob/ClearOldStatusesBackgroundJob.php
+++ b/apps/user_status/lib/BackgroundJob/ClearOldStatusesBackgroundJob.php
@@ -32,8 +32,7 @@ class ClearOldStatusesBackgroundJob extends TimedJob {
) {
parent::__construct($time);
- // Run every time the cron is run
- $this->setInterval(0);
+ $this->setInterval(60);
}
/**