Skip to content

Commit b4b7afd

Browse files
committed
Temporarily disabling periodic host health check
1 parent ecd1b7a commit b4b7afd

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/WebJobs.Script/Host/ScriptHostManager.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,9 @@ public ScriptHostManager(ScriptHostConfiguration config,
105105
_structuredLogWriter = new StructuredLogWriter(EventManager, config.RootLogPath);
106106
_performanceManager = hostPerformanceManager ?? new HostPerformanceManager(settingsManager);
107107

108-
if (config.HostHealthMonitorEnabled && settingsManager.IsAzureEnvironment)
108+
// TEMP : temporarily disabling this until the feature is improved
109+
bool periodicHealthCheckEnabled = false;
110+
if (periodicHealthCheckEnabled && config.HostHealthMonitorEnabled && settingsManager.IsAzureEnvironment)
109111
{
110112
_hostHealthCheckTimer = new Timer(OnHostHealthCheckTimer, null, TimeSpan.Zero, hostHealthCheckInterval);
111113
}
@@ -178,6 +180,7 @@ public bool CanInvoke()
178180
lock (_liveInstances)
179181
{
180182
_liveInstances.Add(newInstance);
183+
_hostStartCount++;
181184
}
182185

183186
OnHostCreated();

0 commit comments

Comments
 (0)