Skip to content

Commit

Permalink
Update WebJobsScriptHostService to remove hardcoded sleep during shut…
Browse files Browse the repository at this point in the history
… down (Azure#9520)
  • Loading branch information
liliankasem authored Sep 8, 2023
1 parent 5032876 commit 0ad9b92
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions release_notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@
- Increased maximum HTTP request content size to 210000000 Bytes (~200MB)
- Update Node.js Worker Version to [3.8.1](https://github.com/Azure/azure-functions-nodejs-worker/releases/tag/v3.8.1)
- Update PowerShell 7.4 Worker Version to [4.0.2930](https://github.com/Azure/azure-functions-powershell-worker/releases/tag/v4.0.2930)
- Update WebJobsScriptHostService to remove hardcoded sleep during application shut down (#9520)
2 changes: 0 additions & 2 deletions src/WebJobs.Script.WebHost/WebJobsScriptHostService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -814,8 +814,6 @@ private void RegisterApplicationLifetimeEvents()
{
_logger.LogDebug("Application Stopping: initiate drain mode");
drainModeManager.EnableDrainModeAsync(CancellationToken.None);
// Workaround until https://github.com/Azure/azure-functions-host/issues/7188 is addressed.
Thread.Sleep(TimeSpan.FromMinutes(10));
}
}
});
Expand Down

0 comments on commit 0ad9b92

Please sign in to comment.