Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not retain VerifyUserData job when lookup server is not available #28466

Merged
merged 1 commit into from
Aug 23, 2021

Conversation

juliusknorr
Copy link
Member

@juliusknorr juliusknorr commented Aug 17, 2021

If the lookup server is disabled there is no need to retain a VerifyUserData job since any of the 24 attempts to verify will never succeed if the server is configured like that.

This will save some unnecessary load on the cron job execution as well as making the oc_jobs table stay in lower numbers during mass user creation.

Signed-off-by: Julius Härtl <jus@bitgrid.net>
@blizzz
Copy link
Member

blizzz commented Aug 17, 2021

Good with me. Is there an option to trigger them in case it is once switched on?

@juliusknorr
Copy link
Member Author

juliusknorr commented Aug 17, 2021

Good with me. Is there an option to trigger them in case it is once switched on?

The only way would be to update the account data manually, but that would be the same as before as the job also gets removed after 24 retries. (~1 day)

@skjnldsv skjnldsv added this to the Nextcloud 23 milestone Aug 18, 2021
Copy link
Member

@skjnldsv skjnldsv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@juliusknorr juliusknorr requested a review from a team August 20, 2021 14:50
@blizzz blizzz merged commit 36b72b8 into master Aug 23, 2021
@blizzz blizzz deleted the bugfix/noid/verify-user-no-retain branch August 23, 2021 09:26
tsdicloud added a commit to nextmcloud/server that referenced this pull request Sep 14, 2021
…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>
dokshukin pushed a commit to nextmcloud/server that referenced this pull request Oct 18, 2021
…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>
dokshukin pushed a commit to nextmcloud/server that referenced this pull request Oct 18, 2021
…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>
sgyuris pushed a commit to nextmcloud/server that referenced this pull request Oct 20, 2021
…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>
@juliusknorr
Copy link
Member Author

/backport to stable22

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants