Hello @Gupta, Vivek - Thanks for reaching out, and posting on the MS Q&A.
This doesn't seem like something caused by you. The deadlock issue with the DurableTask.AzureStorage.TimeoutHandler
exception and a retry of 5 times sounds like something that stems from the underlying version of the Storage SDK. Here's a comment by the Functions team on why/how this may be happening:
This is unfortunately occasionally expected behavior currently.v9.3.1 of the Storage SDK that we use internally occasionally deadlocks in a way that causes the storage request stalls out. We wrap all of our storage requests in
DurableTask.AzureStorage.TimeoutHandler.ExeucuteWithTimeout
to catch this. The first few times we hit this, we will just retry the operation, but once we hit this 5 times, we kill the process, as we are afraid of leaking too many threads.
Here's an open item on the DurableTask framework tracking this issue: Upgrade to a later version of the Storage SDK for DurableTask.AzureStorage
I hope the findings above help bring clarity to the issue that you're observing with your Durable Functions. If you have any follow-up questions, feel free to comment below or directly engage the Functions team members on the open issue referenced above.
Please "Accept Answer" if the answer is helpful so that others in the community may benefit from your experience.