Azure / Azure/azure-functions-host
[Linux] Add timeout for BashCommands
Open
- Dominant language
- C#
- Stars
- 2k
- Forks
- 482
- Avg merge
- 2d 10h
- Merged PRs (30d)
- 36
Description
https://github.com/Azure/azure-functions-host/blob/dev/src/WebJobs.Script.WebHost/Management/InstanceManager.cs#L572
We should pass in a timeout and check if process exited: https://docs.microsoft.com/en-us/dotnet/api/system.diagnostics.process.waitforexit?view=netcore-3.1
Also see https://github.com/Azure/azure-functions-host/blob/dev/src/WebJobs.Script/Workers/ProcessManagement/WorkerProcess.cs#L194-L213 for an example
Contributor guide
Assessment
This issue has not been assessed yet.