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

Batch background review update when parser version changes #5238

Merged

Conversation

praveenkuttappan
Copy link
Member

API review is updated when parser version changes as part of background task during server startup. This causes too many pipelines running in parallel when running one pipeline for each review to be updated. This PR has changes to:

  1. Batch process reviews to be updated with an option to configure batch size
  2. Also add an option to disable a specific language from background update task instead of disabling the task for all languages due to an issue in one language.

@praveenkuttappan
Copy link
Member Author

Fixes #4723

@praveenkuttappan praveenkuttappan marked this pull request as ready for review January 26, 2023 20:08
@praveenkuttappan praveenkuttappan requested a review from a team as a code owner January 26, 2023 20:08
Copy link
Member

@weshaggard weshaggard left a comment

Choose a reason for hiding this comment

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

Looks reasonable

@@ -33,6 +36,18 @@ public ReviewBackgroundHostedService(IReviewManager reviewManager, IConfiguratio
{
_autoArchiveInactiveGracePeriodMonths = 4;
}
var backgroundTaskDisabledLangs = configuration["ReviewUpdateDisabledLanguages"];
if(!string.IsNullOrEmpty(backgroundTaskDisabledLangs))
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
if(!string.IsNullOrEmpty(backgroundTaskDisabledLangs))
if (!string.IsNullOrEmpty(backgroundTaskDisabledLangs))

Copy link
Member Author

Choose a reason for hiding this comment

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

I had missed this comment. I will pull in this change in my next PR. thanks @konrad-jamrozik

@praveenkuttappan praveenkuttappan merged commit 01fc067 into Azure:main Jan 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants