How to fix 100 seconds Grpc HTTP client timeout for Durable Task Client

Kyra Brown 0 Reputation points Microsoft Intern
2024-07-23T22:38:06.9666667+00:00

We are encountering an issue with GRPC HTTP timeouts being set to 100 seconds in our Azure Durable Function orchestrators. Our orchestrations often take longer than 100 seconds to complete, and we are having trouble changing the timeout duration to accommodate these longer operations.

From our understanding, it seems that the client is configured to time out after 100 seconds by default. Despite various attempts to adjust the timeout settings, we have not been successful in extending this duration.

Could you please provide guidance on how to configure the GRPC client to extend the HTTP timeout beyond 100 seconds for our durable function orchestrators? Any insights or solutions to address this timeout issue would be greatly appreciated.

Here is the line that is causing the problem. The call times out after 100 seconds.

var status = await client.WaitForInstanceCompletionAsync(instanceId, true, ctsOrchestrtor.Token);

Here is a picture of our error code:User's image

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,085 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,606 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Mansoor Khan 0 Reputation points
    2024-07-25T18:34:38.5566667+00:00

    To fix a 100-second gRPC HTTP client timeout for a Durable Task Client, you need to adjust the default timeout settings in the gRPC client configuration. This can typically be done by modifying the client settings in your code or configuration files. For instance, if you're using .NET, you can set the GrpcChannelOptions with a higher timeout value for HttpClient.Timeout. Ensure that you carefully manage these settings to avoid excessively long timeouts that might impact performance. For more details and professional assistance, visit https://cashfrenzy-777.com/

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.