Parallel Block Continuation Logic

Does the execution continue to the next action following a parallel block after all actions inside the parallel block have executed, or after any action inside the parallel block executes? For example, given this parallel with two actions:

- parallel:
  - foo
  - bar
- service.notify

Will service.notify execute after both foo and bar have completed or after any of foo or bar completes?

The docs are silent on this but based on traces, it appears that it’s after all actions execute.

Think of parallel as an action. So your example looks like a sequence of two actions where the first one must finish before the second one is executed.

- parallel action 
- service.notify

Based on that understanding, in your example foo and bar are executed concurrently and the notify will be executed only after they are done.

Thanks, Taras.

1 Like