From a2b930b0e2b93bde3f590e2b0fbef57b038d23c7 Mon Sep 17 00:00:00 2001 From: Mathew Charles Date: Fri, 10 Nov 2017 11:00:51 -0800 Subject: [PATCH] Temporarily disabling periodic host health check --- src/WebJobs.Script/Host/ScriptHostManager.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/WebJobs.Script/Host/ScriptHostManager.cs b/src/WebJobs.Script/Host/ScriptHostManager.cs index fcc5112f2e..308d2b21cd 100644 --- a/src/WebJobs.Script/Host/ScriptHostManager.cs +++ b/src/WebJobs.Script/Host/ScriptHostManager.cs @@ -94,7 +94,9 @@ public ScriptHostManager(ScriptHostConfiguration config, _structuredLogWriter = new StructuredLogWriter(EventManager, config.RootLogPath); _performanceManager = hostPerformanceManager ?? new HostPerformanceManager(settingsManager); - if (config.HostHealthMonitorEnabled && settingsManager.IsAzureEnvironment) + // TEMP : temporarily disabling this until the feature is improved + bool periodicHealthCheckEnabled = false; + if (periodicHealthCheckEnabled && config.HostHealthMonitorEnabled && settingsManager.IsAzureEnvironment) { _hostHealthCheckTimer = new Timer(OnHostHealthCheckTimer, null, TimeSpan.Zero, hostHealthCheckInterval); }