Skip to content

How to implement such workflow using 1.0 #994

Closed Answered by cdavernas
Flex-Xuan asked this question in Q&A
Discussion options

You must be logged in to vote

fork support concurrently, it still need wait all the tasks inside to be execute completed, right?

To quote the spec about fork tasks:

Allows workflows to execute multiple subtasks concurrently, enabling parallel processing

@Flex-Xuan Yes, all branches must complete for a fork task to complete, unless you set compete: true, in which case it completes when the first branch ran to completion.

Do you mean that monitorVitals and doSomethingWhenThe3EventsHaveBeenConsumed are in a do task, so they will be executed sequentially

Yes, exactly! To quote the spec about do tasks:

Serves as a fundamental building block within workflows, enabling the sequential execution of multiple subtasks

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@Flex-Xuan
Comment options

@cdavernas
Comment options

@Flex-Xuan
Comment options

@cdavernas
Comment options

Answer selected by Flex-Xuan
@Flex-Xuan
Comment options

@Flex-Xuan
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants