microsoft / durabletask-java

Java SDK for Durable Functions and the Durable Task Framework
MIT License
14 stars 7 forks source link

Fan-out/ Fan-in Pattern | Access output of successful tasks #181

Open akshaykumars10 opened 1 year ago

akshaykumars10 commented 1 year ago

If we submit 2 tasks for execution using the fan-out/fan-in pattern. If one of these tasks fails with an exception, we can retrieve its details by catching a CompositeTaskFailedException. But what about the task that was successful? How can I access its response in the orchestrator function's code?

kaibocai commented 1 year ago

We currently don't support this due to our implementation of Fan in/out based on CompleatableFuture. Fixed related bug https://github.com/microsoft/durabletask-java/issues/169