Open timosachsenberg opened 6 years ago
I think this is not possible with a single node. It needs to know how many branches are between loop start and loop end and how many threads each branch uses in its maximal needy node. So you have the following variables:
I have a metanode for this in my own workflows but the user still needs about the structure inside the node and use the right variables in the "-thread" parameters in the nodes.
yes I think we can't control the number of threads but maybe the number of jobs (as TOPPAS did)
It's cool that you have this meta node and certainly a good start. To make it really useful I think there should definitely be a way to get the number of branches and iterations etc. (except the number of threads which KNIME can't know) to schedule the processing.
Iterations is certainly possible. Branches might by hard/impossible to get, since it is workflow specific. But users should be easily able to type that into a variable.
How does KNIME do it for their loops? Hard to believe they manage to parallelize if they can't query this information from the KNIME API.
The Parallel For Loop just creates virtual duplicates (=branches) for whatever is between Loop Start and End. You can specify how many are created of course. But you have to do the calculations by yourself.
oh ok, thanks for clarifying.
Check if we can provide parallel zip nodes that are easily configured and potentially allow to limit (globally) the total number of jobs run in a workflow.