Open Alan-Hinton opened 8 months ago
Did we ever get a fix or workaround for this? I am facing exactly the same issue when running Azure Function locally but with the WaitForInstanceCompleteAsync method. Seems like a fundamental issue as these methods are designed for long running processes. There has to be some easy way to configure the httpClient timeout via services collection or something. Any help would be greatly appreciated.
I spent quite some time with Azure support trying to get a resolution to this issue, but one was never found. They did suggest manually deleting the tables, but I wasn't comfortable with this because my system almost always has running durable functions so I didn't want to lose them. Also it seemed like the problem would just return.
Hopefully the developers can find a way to make these methods work as they should.
Our function app makes extensive use of durable functions and this is saving a lot of data into the durable functions tables. I am trying to use
PurgeInstancesAsync
to clear out those tables. I use two different queries, one to delete all durable functions more than a month oldand one to delete all completed durable functions more than 7 days old
The former seems to work if the tables are not too large, but fails once they reach a certain size. As far as I can tell the later never works.
With large tables
PurgeInstancesAsync
always fails after 100 seconds with the following error message:This leads me to believe there is a timeout somewhere that is limiting the query to 100s. It would be great if callers could set the timeout to get around this problem. Or have some way of deleting the data chunks at a time.
I have tried splitting the requests into 1 day periods, but this seems to make no difference. I suspect this is because all the time is taken finding the items to delete and the method is timing out before any deleting happens. I notice the date of the function is not one of the keys on the table, so whatever date range is selected a full table scan is required to find the items to delete.