-
Notifications
You must be signed in to change notification settings - Fork 273
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PurgeAllInstancesAsync throwing Grpc.Core.RpcException #2702
Comments
FYI there is a workaround by changing it to:
I do think there is a bug though, because PurgeInstancesFilter supports null values, but it actually crashes when CreatedFrom is null or DateTime.MinValue for example |
I suspect what's happening here is that the purge call is timing out in the gRPC layer. I think there are a couple ways we can address this:
It should be safe to catch the exception and retry. Each call should be making progress. The thing to be careful about is making sure we're not accidentally retyring some other non-retriable issue. |
Linking issue from the durabletask. |
The provide workaround by @jcageman is not working for me. To me it looks like a problem in the DurableTaskClient. The PurgeAllInstancesAsync(PurgeInstancesFilter filter, CancellationToken cancellation) is calling this.PurgeAllInstancesAsync(new PurgeInstancesFilter(), null, cancellation); Code in DurableTaskClient:
|
the code you are referring to calls another method in the same implementation which throws a not implemented exception. So not a problem, although it's indeed confusing. https://github.com/microsoft/durabletask-dotnet/blob/963f6c8e1128f79557afed2e95ee07f4429fbec7/src/Client/Grpc/GrpcDurableTaskClient.cs#L338C4-L359C6 is the actual implementation. |
Description
Exception: Grpc.Core.RpcException: Status(StatusCode="Unknown", Detail="Exception was thrown by handler.")
[2023-12-22T08:10:04.660Z] at Microsoft.DurableTask.
[2023-12-22T08:10:04.660Z] at Microsoft.DurableTask.Client.Grpc.GrpcDurableTaskClient.PurgeInstancesCoreAsync(PurgeInstancesRequest request, CancellationToken cancellation)
I wouldn't expect this exception. This is happening on a new function app on .NET 8 isolated with the simple http trigger as above with the package versions below. I get this error locally running via azurite
App Details
.NET 8 Isolated
Microsoft.Azure.Functions.Worker 1.20.0
Microsoft.Azure.Functions.Worker.Sdk 1.16.4
Microsoft.Azure.Functions.Worker.Extensions.DurableTask 1.1.0
The text was updated successfully, but these errors were encountered: