Durable activity failures are not propagated to orchestrator in fan out/fan in pattern
See original GitHub issueAt one point #572 was fixed with this pull request https://github.com/Azure/azure-functions-powershell-worker/pull/571.
If I do a single activity execution, the exception is propagated back up to the orchestrator. Good 👍
If I implement a fan out/fan in pattern like below, I don’t get errors and only the activities that succeeded populate the $tasks
variable.
$ErrorActionPreference = "Stop"
$ParallelTasks = foreach ($file in $FailedFiles) {
# Create $FileDetails object
Invoke-DurableActivity -FunctionName "ProcessAuditFileActivity" -Input $FileDetails -NoWait
}
$tasks = Wait-DurableTask -Task $ParallelTasks
# 1 out of 2 tasks fails, $tasks only has one result and no errors from the failed activity, or exceptions thrown
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Durable Functions: Get failed tasks in Fan out pattern
I'm using the fan-out pattern to execute a list of tasks that have a possibility of failing. So I'm using the retry strategy...
Read more >Fan-out/fan-in scenarios in Durable Functions - Azure
Fan -out/fan-in refers to the pattern of executing multiple functions concurrently and then performing some aggregation on the results.
Read more >Fan Out/Fan In Scenario, stuck in running state, not ...
Once all the fan out activities have completed, the orchestration should continue to the next step in logic and successfully complete.
Read more >Making Sense of Azure Durable Functions
Instead of silently failing, the activity function sends a message containing the information about the error back to the orchestrator. The ...
Read more >Fan-out/fan-in for high scalability with Durable Functions
This way, the (sub-)orchestrator will not fail even if one of its activities fails, while still using retries for transient errors. And you...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Pinging @davidmrdavid for a quick triage.
My apologies for the delayed response, @ruankr. I replied on the other thread: https://github.com/Azure/azure-functions-durable-powershell/issues/65#issuecomment-1664381888