-
Notifications
You must be signed in to change notification settings - Fork 54
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
Completed event not raised with Event Grid #297
Comments
Failed orchestration event is being raised correctly, though:
When suborchestrator is called and it fails with an error (as simple as throw new Error('an error')), the events that are sent for the suborchestrator are Started and Failed. When the error propagates to the parent orchestrator which fails (the error is rethrown as a result of context.df.Task.all() on the suborchestrator task), the event for the parent orchestrator is not emitted - neither Completed nor Failed. Confirming the behaviour is the same in the cloud. |
Hi @przemos, your observation about the sub-orchestrator is interesting. Were you able to see a Completed event raised in the case where the sub-orchestrator completed successfully? I did a walkthrough of the code which manages the sending of notifications and nothing stood out to me that might explain this behavior. I think we'll need to try to reproduce this on our side to understand what might be happening. |
Hi, yes, I can see it but only for the sub-orchestrator: |
Hi @przemos, I noticed you recently reviewed this issue. Please let me know if you continue seeing this issue with the SDK (and extension) versions listed as a workaround in that issue. If you do, then could you please attach a |
durable.zip |
Thanks, @przemos. I've tagged this as |
Describe the bug
A simple orchestrator delegating the work to 2 activities (one w/o async/await - returns immediately, the other w/) and then awaited with yield completes successfully - the status of orchestration is marked as Completed, but the Completed event is not raised with EventGrid. Only Started event is raised.
Investigative information
"extensionBundle": {
"id": "Microsoft.Azure.Functions.ExtensionBundle",
"version": "[2.*, 3.0.0)"
}
"durable-functions": "^1.5.3",
Testing locally.
To Reproduce
Steps to reproduce the behavior:
2.Orchestrator
Expected behavior
Durable Functions framework fires Completed event just as it sends Started event:
07200c19afa245f2bfdeccc5d4289507: Function 'DurableFunctionsOrchestrator (Orchestrator)' sent a 'Started' notification event to Azure Event Grid. Status code: 200. Details: . HubName: CustomHub. AppName: . SlotName: . ExtensionVersion: 2.5.1. SequenceNumber: 8. Latency: 477 ms.
Actual behavior
The orchestration completes correctly - the status of the orchestration is marked as completed. The Completed event is never raised with EventGrid.
The last log statements are:
Screenshots
If applicable, add screenshots to help explain your problem.
Known workarounds
Provide a description of any known workarounds you used.
Additional context
Host.json
Azure Functions Core Tools
Core Tools Version: 3.0.3904 Commit hash: c345f7140a8f968c5dbc621f8a8374d8e3234206 (64-bit)
Function Runtime Version: 3.3.1.0
The text was updated successfully, but these errors were encountered: