Open stevendarby opened 6 months ago
Indeed, we are having the same issue here. We are moving from inProc to Isolated and aside from having the issue with TaskOptions itself (https://github.com/Azure/azure-functions-durable-extension/issues/2908) we do see that the exception that triggered a retry is not exposed in the handler.
In past we could do something like
if (ex.InnerException is NotFinishedStatusException statusException && statusException.Operation.Completed)
Now, we can only check the exception type via
retryContext.LastFailure.IsCausedBy<NotFinishedStatusException>()
It would be handy if the exception itself is exposed.
I ran into the same issue today. I would think that activity functions would mostly be async, otherwise there is very little useful work they can do.
I have looked into how IsCausedBy
works:
The owner record TaskFailureDetails
is recursive, it has a property InnerFailure
. There is a placeholder to keep inner exception details, but for some reason it is not used. The debugger also tells me this value is null
, so I cannot create my own workaround.
A higher priority than P3 is desired.
Discussed in https://github.com/Azure/azure-functions-durable-extension/discussions/2614