@@ -105,6 +105,13 @@ struct TEvPrivate {
105105
106106constexpr auto CLEANUP_PERIOD = TDuration::Seconds(60 );
107107
108+ TDuration GetPendingFetchPeriod (const NFq::NConfig::TPendingFetcherConfig& config) {
109+ if (const auto periodMs = config.GetPendingFetchPeriodMs ()) {
110+ return TDuration::MilliSeconds (periodMs);
111+ }
112+ return TDuration::Seconds (1 );
113+ }
114+
108115} // namespace
109116
110117class TPendingFetcher : public NActors ::TActorBootstrapped<TPendingFetcher> {
@@ -170,6 +177,7 @@ class TPendingFetcher : public NActors::TActorBootstrapped<TPendingFetcher> {
170177 , ServiceCounters(serviceCounters, " pending_fetcher" )
171178 , GetTaskCounters(" GetTask" , ServiceCounters.Counters)
172179 , FailedStatusCodeCounters(MakeIntrusive<TStatusCodeByScopeCounters>(" IntermediateFailedStatusCode" , ServiceCounters.RootCounters->GetSubgroup (" component" , " QueryDiagnostic" )))
180+ , PendingFetchPeriod(GetPendingFetchPeriod(config.GetPendingFetcher()))
173181 , CredentialsFactory(credentialsFactory)
174182 , S3Gateway(s3Gateway)
175183 , ConnectorClient(connectorClient)
@@ -518,7 +526,7 @@ class TPendingFetcher : public NActors::TActorBootstrapped<TPendingFetcher> {
518526 IModuleResolver::TPtr ModuleResolver;
519527
520528 bool HasRunningRequest = false ;
521- const TDuration PendingFetchPeriod = TDuration::Seconds( 1 ) ;
529+ const TDuration PendingFetchPeriod;
522530
523531 TActorId DatabaseResolver;
524532
0 commit comments