question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Durable activity failures are not propagated to orchestrator in fan out/fan in pattern

See original GitHub issue

At 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:open
  • Created 2 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
cgillumcommented, Jul 1, 2022

Pinging @davidmrdavid for a quick triage.

0reactions
davidmrdavidcommented, Aug 3, 2023

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found