Replies: 4 comments 17 replies
-
Let's move this issue into the Azure/azure-functions-durable-extension repo... |
Beta Was this translation helpful? Give feedback.
-
Thanks @cgillum. Please let me know what other information is needed on my side. I ran into this stack overflow post where others had similar requirements but I don't think anyone found a good answer for how to achieve application-level dead lettering of the message that triggered the durable orchestration. https://stackoverflow.com/questions/61279051/handling-service-bus-messages-in-durable-functions the accepted answer to the stack overflow post was to pass the message receiver to the orchestration function, but as I mentioned earlier, when I did that I got a webjobs bind exception. i am using versions:
The current hack I am doing is creating a new service bus message with the same properties as the original, with a TTL of 1 millisecond such that the message gets automatically dead lettered by the service bus queue's TTL property. |
Beta Was this translation helpful? Give feedback.
-
In general, I think you have a few options:
|
Beta Was this translation helpful? Give feedback.
-
I’ve commented on this exact same thing, but with an alternative solution. My recommendation is still the same, don’t try to defer completion of the SB message once it’s been passed to the orchestration. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi team,
I am hosting my durable task framework solution through webjob host. I am using the webjob's Service Bus Trigger to start the durable orchestration.
The scenario I would like to support is: have the service bus trigger handle the service bus message, and start the durable task framework orchestration. If orchestration fails, then dead letter the original service bus message.
I am calling the children activities of the orchestration with
CallActivityWithRetryAsync
. However, if retries are exhausted due to unforeseen issue, I am catching theFunctionFailedActivity
exception. In this catch block, I am calling another failure activity. Here, I would like to dead letter queue the original service bus message to have observability to when fatal errors occur in the application level.I tried to pass the MessageReceiver to the Ochestration's RunAsync function, but get a bind exception. I was wondering if this scenario is supported, or other recommendation workarounds/solutions?
Beta Was this translation helpful? Give feedback.
All reactions