Skip to content

Commit

Permalink
Disable the generation of VerifyUserData background jobs for migratio…
Browse files Browse the repository at this point in the history
…n users.

This avoids performance degradation of user creation batches from migration. It avoid the creation of Verify jobs completels (which are not needed for oidc users anyway)
See nextcloud#28466

Signed-off-by: Bernd.Rederlechner@t-systems.com <bernd.rederlechner@t-systems.com>
  • Loading branch information
tsdicloud authored and ilya.dokshukin@iits-consulting.de committed Oct 18, 2021
1 parent ded720e commit 3641523
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/settings/lib/BackgroundJobs/VerifyUserData.php
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ protected function verifyViaLookupServer(array $argument, string $dataType): boo
if (empty($this->lookupServerUrl) ||
$this->config->getAppValue('files_sharing', 'lookupServerUploadEnabled', 'yes') !== 'yes' ||
$this->config->getSystemValue('has_internet_connection', true) === false) {
return false;
return true;
}

$user = $this->userManager->get($argument['uid']);
Expand Down

0 comments on commit 3641523

Please sign in to comment.