ParallelForEach not running input list in parallel
See original GitHub issueWe tried to use the ParallelForEach
activity to run several activities at once, but they all ran sequentially. After looking into the ParallelForEach
activity, we see that the activity uses the Combine(...)
function. The CombinedResult
uses a await, so not sure how it is supposed to run as parallel tasks.
Issue Analytics
- State:
- Created 3 months ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
Parallel.ForEach is not working as expected C# - ...
I am replacing ForEach to Parallel.ForEach. ForEach is working fine and gives result as expected where as Parallel.ForEach is giving unexpected ...
Read more >Parallel.ForEach ends working in a single thread #46146
Problem - I have a list of a few hundreds of tasks to run in parallel, each task can take from a few...
Read more >Write a simple Parallel.ForEach loop
This article shows how to use a Parallel.ForEach loop to enable data parallelism over any System.Collections.IEnumerable or System.Collections.
Read more >Parallel.ForEach not always working - Microsoft Q&A
Each pair of statements executes the Solve() method on all the items in a List, and keeps a cumulative Boolean of the results....
Read more >Parallel.ForEach seems useless in ASP.NET C# : r/csharp
Parallel.Foreach definitely allows running tasks simultaneously on multiple threads, assuming the compiler decides that is the best approach.
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 Free
Top 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
That’s right. However, you can still achieve parallel activity execution in Elsa 2 by moving work to a background job and have the activity suspend itself until the background work completes, as outlined here.
Done via https://github.com/elsa-workflows/elsa-core/pull/4306