I was wondering if there was any way to send work item attributes back when cooking with a service.
What I'm trying to do is cache some geometry + store some stats about that cache as PDG attributes.
When using out of process cooking there is this (from docs):
from pdgjson import WorkItem # create WorkItem object from the data serialized to `$PDG_TEMP/data/workitem.json` work_item = WorkItem.fromJobEnvironment() # read attrib values from the running work item val = work_item.attribValue('myintattrib') # Send data back to PDG work item via network calls work_item.setStringAttrib('runtime_attrib', 'test value', 0) work_item.addOutputFile('/tmp/myoutput.txt')
Is there a equivalent to this using services?