-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Concurrent subworkflow #1167
Comments
OK, the best we can do is this,
In this way no substep executor will be involved and the subworkflows are executed in parallel in practice. |
Just want to link this issue to our discussion in #1086 |
OK, if we know the limitations, the solution is relatively easy.
On the scheduler side, previously a step can only wait for one workflow, and now they can wait for many. There are also competing messaging issues caused by concurrent subworkflows ... So in the end,
will be executed concurrently, so does
but
and
will not be executed concurrently. |
Note that
will not be executed concurrently, but
will, and technically speaking
would imply that I think an easy fix to this limitation would be
|
OK,
|
Although the general case is extremely difficult to solve, I think the two cases, namely
and
would satisfy a majority of the use cases, and I would consider this issue resolved. |
Thank you @BoPeng I confirm it does work for my workflow examples when changed to this new convention! |
Good. Hopefully figure 2c is not slower than other implementations now. |
Currently substeps are not executed in parallel if it contains subworkflows
The problem is that we use substep workers to execute substeps. If substep workers are allowed to execute subworkflow, then substep worker needs to handle workflow and step execution logic, then another layer of substep worker. If substep workers passes subworkflows to the step worker, then the substep worker has to wait for the result from step worker, which will cause a lot of inactive processes.
The text was updated successfully, but these errors were encountered: