azure-functions-core-tools
azure-functions-core-tools copied to clipboard
`func start` on Linux won't stop upon recieving SIGTERM
If I execute func start on Linux and then send a termination request (kill -s SIGTERM <pid>), the local runner will ignore the request.
Sending a termination signal like this should result in the program closing. Instead, the process stays open indefinitely.
Interestingly, SIGINT works just fine.
I'm running Linux and I've tested this with both a Node project and a Java project.
This is currently preventing the Azure Functions Gradle Plugin from shutting down down the azureFunctionsRun task correctly, which is a huge usability problem for that plugin. However, the root issue remains in func start.
Is there any update on this issue? We are getting this issue as well in our build pipelines when trying to run integration tests
We don't have anything yet. I tried looking through the source myself to figure something out but I'm not a C# guy.
Just stumbled upon this same issue and opened a PR, at least for the version published on npm.
Has anyone had time to look a this yet? I need this fix...