danielgerlag / workflow-core

Lightweight workflow engine for .NET Standard
MIT License
5.4k stars 1.2k forks source link

Parallel tasks run in sequence not parallel #1238

Closed AngrySKL closed 9 months ago

AngrySKL commented 9 months ago

I am using wfc with json which has a Parallel Task which i want to run simultaneously, the json content looks like below

{ "Id": "test", "Version": 1, "Steps": [ { "Id": "Step1" “StepType”: "WorkflowCore.Primitives.Sequence, WorkflowCore", "Do": [ [ { "Id": "Branch1", "StepType": "MyProject.Steps.Step1, MyProject" } ], [ { "Id": "Branch1", "StepType": "MyProject.Steps.Step2, MyProject" } ] ] } ] }

I checked the documention and I think this is the correct Parallel Json mentioned here https://workflow-core.readthedocs.io/en/latest/control-structures/#json-yaml-api_4

And I also downloaded the source code of wfc and played around with its sample projects, and the result of Sample13 which demostrates the usage of Parallel steps shows the same result which these taks runs in sequence not simultaneously.

Does anyone know what I do wrong?

AngrySKL commented 9 months ago

@danielgerlag could u help me, thanks a lot.

danielgerlag commented 9 months ago

https://github.com/danielgerlag/workflow-core/issues/785