Azure / Azure/azure-functions-durable-js
context.df.Task.all throws as soon as one task fails so one can't get the result of other tasks
- Dominant language
- TypeScript
- Stars
- 142
- Forks
- 66
- Avg merge
- 3d 19h
- Merged PRs (30d)
- 4
Description
**Describe the bug**
`context.df.Task.all` throws as soon as one task fails so one can't get the result of other tasks. I've made a minimum reproducible repo here: https://github.com/GP4cK/azure-durable-task-all-bug.
**Investigative information**
- Durable Functions extension version: [3.*, 4.0.0)
- durable-functions npm module version: 2.1.1
- Language (JavaScript/TypeScript) and version: Typescript
- Node.js version: v16.19.0
**To Reproduce**
Steps to reproduce the behavior:
1. Clone https://github.com/GP4cK/azure-durable-task-all-bug
2. Follow the steps in the README
**Expected behavior**
I'm expecting to be able to loop over the tasks and that for each task, `task.isCompleted || task.isFaulted` should be true and `task.result` should not be undefined (if the Activity/SubOrchestration is returning something).
**Actual behavior**
When the first task fails, the second task is neither completed or faulted and its result is undefined.
**Known workarounds**
I guess the workaround is to not use the fan-out fan-in pattern and use the chaining pattern instead.
Contributor guide
Assessment
This issue has not been assessed yet.