We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 70f23a4 commit ac28e0aCopy full SHA for ac28e0a
apps/files/lib/BackgroundJob/ScanFiles.php
@@ -116,11 +116,17 @@ protected function run($argument) {
116
}
117
118
$usersScanned = 0;
119
+ $lastUser = '';
120
$user = $this->getUserToScan();
- while ($user && $usersScanned < self::USERS_PER_SESSION) {
121
+ while ($user && $usersScanned < self::USERS_PER_SESSION && $lastUser !== $user) {
122
$this->runScanner($user);
123
+ $lastUser = $user;
124
125
$usersScanned += 1;
126
127
+
128
+ if ($lastUser === $user) {
129
+ $this->logger->warning("User $user still has unscanned files after running background scan, background scan might be stopped prematurely");
130
+ }
131
132
0 commit comments