Azure / Azure/azure-functions-host

In case the worker is in down 'exit' the host still accept requests till it time out

Open
#5,415 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
2k
Forks
482
Avg merge
2d 10h
Merged PRs (30d)
36

Description

While @mhoeger and I working on #5361 we found that although the worker is down, the host still accepting requests till the function timeout.

When the worker is down, the host still accepts requests and SendInvocationRequest will be called and SendStreamingMessage
https://github.com/Azure/azure-functions-host/blob/3eb520c7e7946dd2ebaca6fa00ef2562d86fde00/src/WebJobs.Script/Workers/Rpc/RpcWorkerChannel.cs#L328

**but the OutboundEvent will not be triggered from**

https://github.com/Azure/azure-functions-host/blob/398f8264f2d579a71d31ba3f59a442afbbdef643/src/WebJobs.Script/Workers/Rpc/FunctionRpcService.cs#L61

Contributor guide

Open the contributing guide

Research direction

Start in src/WebJobs.Script/Workers/Rpc/RpcWorkerChannel.cs around the SendInvocationRequest and SendStreamingMessage call, then compare it with the OutboundEvent handling in src/WebJobs.Script/Workers/Rpc/FunctionRpcService.cs. Reproduce the worker-down path described in the issue and trace why the request remains accepted. Done means requests fail promptly when the worker exits instead of waiting for the function timeout.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.