Skip to content

Loops - Concurrent execution #756

@Sriram2631

Description

@Sriram2631

I am trying to make a For node fire off run signals to all the child classes at once to make them run concurrently.

Probably naive but from what I gleaned, the executor is assigned when a child node/node instance in the sequence is reached. I tried to see if setting the executor apriori would allow for running the child nodes/node instances concurrently.

Would this be the right approach? I see that doing so, particularly when the body_node is a macro, eventually causes errors, but I wanted to confirm the approach before debugging.

I tested it out by simply adding body_node_executor = ( ProcessPoolExecutor, (), {"max_workers": 4}), but I am not sure if this is the way to go.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions