-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Description
Often, the tree structure of the pipelines allows to run things in parallel. Right now the pipeline runs one stage at a time. To make use of parallel computing power, a couple of steps are necessary:
- Let user define resource availability via configuration, e.g.
resources:
- cpu: 8
- memory: 10- Let user define resource requirements, e.g.
def configure(context):
context.resource("cpu", 4)
- Run stages in parallel in the pipeline. There is a caveat: We can not start slave processes from within slave processes. This means if a stage makes use of the
parallel()context, it should not already be in a child process! Therefore, we need to put some thoughts and intelligent management of the process pool. (In particular, it would need to be managed centrally by the pipeline instead of perParallelMasterContextobject).
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels