Skip to content

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

Open
@YaroBear

Description

@YaroBear

At one point #572 was fixed with this pull request #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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions