Parallel

Runs its branches side by side and ends when all are done or the completion condition is true.

Behaviour

Built-in workflow activity · type id velophex.parallel

Properties#

Options#

Completion condition#

CompletionCondition · Boolean · Optional · Default: Not specified

Checked after each branch completes; when True the branches still running are canceled (their Finally blocks run). Empty: wait for every branch.

How it works#

Parallel runs its Branches as cooperating paths of execution. One scheduler thread interleaves them at async boundaries, in declaration order. The node completes when every branch has, or as soon as the completion condition is true after a branch completes. The remaining branches are then canceled and their writes persist. A branch fault that nothing inside the branch handles cancels the other branches and faults the node.

Properties

Options

How it works