Retrieve Multiple Thread Node Output

Good morning,

we want to run a thread marking the multinode option, the problem is that for every time itere has to return some data, right now although we have it as a list in the parent process, it is only staying with the result of one of the iterations we imagined that something like this would happen since an append is not made when retrieving the result. We wanted to do it this way because the thread has to run for several registers and it takes time, so to make it a little more efficient we came up with this but if we cannot retrieve the result this option is useless.

If you can't do it like this, something else occurs to you.
(The process is synchronous)

Greetings and thank you

  Discussion posts and replies are publicly visible

Parents Reply
  • 0
    Certified Lead Developer
    in reply to sandrap845

    I think in the past when I've had to handle this (and had to use a subprocess as opposed to a script task for example), instead of using MNI on the subprocess node, I've built a small in-process loop that manually iterates over the array in question.  That way you can have a script task in the middle of the loop to take the most recent results and append them to the array of all results.  Obviously this has to be done carefully if at all.

    Also in case it helps, I was recently able to handle something similar to your use case by using the Start Process node (instead of the subprocess node), *with* MNI, as it allows you to format a more standard data output that can append to an array.

Children