This repository was archived by the owner on Jul 30, 2024. It is now read-only.
File tree Expand file tree Collapse file tree
src/NuGet.Services.Revalidate Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ public class Job : ValidationJobBase
3232 private const string RebuildPreinstalledSetArgumentName = "RebuildPreinstalledSet" ;
3333 private const string InitializeArgumentName = "Initialize" ;
3434 private const string VerifyInitializationArgumentName = "VerifyInitialization" ;
35+
3536 private const string JobConfigurationSectionName = "RevalidateJob" ;
3637
3738 private static readonly TimeSpan RetryLaterSleepDuration = TimeSpan . FromMinutes ( 5 ) ;
@@ -112,6 +113,7 @@ await scope.ServiceProvider
112113 protected override void ConfigureJobServices ( IServiceCollection services , IConfigurationRoot configurationRoot )
113114 {
114115 services . Configure < RevalidationConfiguration > ( configurationRoot . GetSection ( JobConfigurationSectionName ) ) ;
116+
115117 services . AddSingleton ( provider => provider . GetRequiredService < IOptionsSnapshot < RevalidationConfiguration > > ( ) . Value ) ;
116118 services . AddSingleton ( provider => provider . GetRequiredService < IOptionsSnapshot < RevalidationConfiguration > > ( ) . Value . Initialization ) ;
117119 services . AddSingleton ( provider => provider . GetRequiredService < IOptionsSnapshot < RevalidationConfiguration > > ( ) . Value . Health ) ;
Original file line number Diff line number Diff line change 1616 "ComponentPath" : " NuGet/Package Publishing"
1717 },
1818
19- "MinPackageEventRate" : 120 ,
20- "MaxPackageEventRate" : 400 ,
19+ "MinPackageEventRate" : " #{Jobs.nuget.services.revalidation.MinPackageEventRate} " ,
20+ "MaxPackageEventRate" : " #{Jobs.nuget.services.revalidation.MaxPackageEventRate} " ,
2121
2222 "RetryLaterSleep" : " 00:00:30" ,
2323
Original file line number Diff line number Diff line change 1616 "ComponentPath" : " NuGet/Package Publishing"
1717 },
1818
19- "MinPackageEventRate" : 120 ,
20- "MaxPackageEventRate" : 400 ,
19+ "MinPackageEventRate" : " #{Jobs.nuget.services.revalidation.MinPackageEventRate} " ,
20+ "MaxPackageEventRate" : " #{Jobs.nuget.services.revalidation.MaxPackageEventRate} " ,
2121
2222 "RetryLaterSleep" : " 00:00:30" ,
2323
Original file line number Diff line number Diff line change 1616 "ComponentPath" : " NuGet/Package Publishing"
1717 },
1818
19- "MinPackageEventRate" : 120 ,
20- "MaxPackageEventRate" : 400 ,
19+ "MinPackageEventRate" : " #{Jobs.nuget.services.revalidation.MinPackageEventRate} " ,
20+ "MaxPackageEventRate" : " #{Jobs.nuget.services.revalidation.MaxPackageEventRate} " ,
2121
2222 "RetryLaterSleep" : " 00:00:30" ,
2323
You can’t perform that action at this time.
0 commit comments