Skip to content

Commit fe09c12

Browse files
Remove feature flag for worker warmup (#9317)
1 parent 4efdcb3 commit fe09c12

File tree

2 files changed

+1
-15
lines changed

2 files changed

+1
-15
lines changed

src/WebJobs.Script.WebHost/Middleware/HostWarmupMiddleware.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,7 @@ public async Task WarmupInvoke(HttpContext httpContext)
8888

8989
private async Task WorkerWarmupAsync()
9090
{
91-
if (_hostingConfigOptions.Value.WorkerWarmupEnabled)
92-
{
93-
await _webHostRpcWorkerChannelManager.WorkerWarmupAsync();
94-
}
91+
await _webHostRpcWorkerChannelManager.WorkerWarmupAsync();
9592
}
9693

9794
internal void ReadRuntimeAssemblyFiles()

src/WebJobs.Script/Config/FunctionsHostingConfigOptions.cs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,6 @@ public bool FunctionsWorkerDynamicConcurrencyEnabled
3232
}
3333
}
3434

35-
/// <summary>
36-
/// Gets a value indicating whether language workers warmup feature is enabled in the hosting config.
37-
/// </summary>
38-
public bool WorkerWarmupEnabled
39-
{
40-
get
41-
{
42-
return GetFeature(RpcWorkerConstants.WorkerWarmupEnabled) == "1";
43-
}
44-
}
45-
4635
/// <summary>
4736
/// Gets a value indicating whether worker indexing feature is enabled in the hosting config.
4837
/// </summary>

0 commit comments

Comments
 (0)