We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6b1e044 commit be59bd0Copy full SHA for be59bd0
src/WebJobs.Script.WebHost/Handlers/WebScriptHostHandler.cs
@@ -48,7 +48,7 @@ protected override async Task<HttpResponseMessage> SendAsync(HttpRequestMessage
48
// initialize. This might happen if http requests come in while the
49
// host is starting up for the first time, or if it is restarting.
50
TimeSpan timeWaited = TimeSpan.Zero;
51
- while (!scriptHostManager.IsRunning && (timeWaited < _hostTimeoutSeconds))
+ while (!scriptHostManager.IsRunning && scriptHostManager.LastError == null && (timeWaited < _hostTimeoutSeconds))
52
{
53
await Task.Delay(_hostRunningPollIntervalMs);
54
timeWaited += TimeSpan.FromMilliseconds(_hostRunningPollIntervalMs);
0 commit comments