Search - User list
Full Version: Loop over work-items in partition in Python script node
Root » PDG/TOPs » Loop over work-items in partition in Python script node
ninjahoudini
Hi!

How do I access all the work-items in a partition in a python script node?

I'm using a custom python bin and cooking out of process, but can't even get this to work with the default python script node.
Ideally I'd use something like:

for items in partition:
#do something

Any help would be much appreciated!
tpetrick
You can access the contents of an upstream partition using parent_item.partitionItems if you're cooking in-process. If you're cooking out of process, there currently is no way to access data outside of the work item associated with the script.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB