Two functions can time out at the same time and cause the same worker to crash for independent reasons. If this channel is a webhost channel, we handle that correctly. However, if this is a jobhost-scoped channel, we do not handle for this condition:
https://github.com/Azure/azure-functions-host/blob/2d0ac22afb86041a5b81797b6aaf16049a673198/src/WebJobs.Script/Workers/Rpc/FunctionRegistration/RpcFunctionInvocationDispatcher.cs#L321
Per Yong:
Note that any worker can get into this state after at least one fatal worker exception on the instance.
cc: @pragnagopa and @yojagad
I am hitting this bug pretty regularly since last couple of weeks. I am using Node JS Function App (v2). Node JS version is 8.11.2.
@mhoeger / @yojagad saw this was closed -- any idea when this will be released to Azure?
I am facing this issue in recently in the App Service Plan.
Message Exception while executing function: Functions.etlQueProcessor Number of initialized language workers exceeded:7 exceeded maxProcessCount: 1
Exception type System.InvalidOperationException
Failed method Microsoft.Azure.WebJobs.Script.Workers.Rpc.RpcFunctionInvocationDispatcher+
The function app is python based and is invoked by a queue message.
The issue never came u in last one year and nor restarting the function app resolved the issue.
@shakirshakeelzargar - Can you please create a separate issue with details: