You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(federation): always set server status to OK after successful runs
Previously if a server status got set to failure, it stayed that way
until an addressbook-sync found changes. Now the server status is set to
OK after each successful sync check (if that's not the case already),
regardless of addressbook changes.
This change also includes two new logging statements, which could help
next time someone debugs this.
Signed-off-by: Pablo Zimdahl <pablo@nextcloud.com>
Copy file name to clipboardExpand all lines: apps/federation/lib/BackgroundJob/GetSharedSecret.php
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -90,6 +90,7 @@ protected function run($argument) {
90
90
// kill job after 30 days of trying
91
91
$deadline = $currentTime - $this->maxLifespan;
92
92
if ($created < $deadline) {
93
+
$this->logger->warning("The job to get the shared secret job is too old and gets stopped now without retention. Setting server status of '{$target}' to failure.");
Copy file name to clipboardExpand all lines: apps/federation/lib/BackgroundJob/RequestSharedSecret.php
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -93,6 +93,7 @@ protected function run($argument) {
93
93
// kill job after 30 days of trying
94
94
$deadline = $currentTime - $this->maxLifespan;
95
95
if ($created < $deadline) {
96
+
$this->logger->warning("The job to request the shared secret job is too old and gets stopped now without retention. Setting server status of '{$target}' to failure.");
0 commit comments