Improved recursive handling by nesting operations in operations under then new buildRecursive. Also changed extract module to attach its findings to outputs for better resolver and recursiveSet targeting.
This commit is contained in:
@@ -23,6 +23,8 @@ def buildRecursive(definition, outputs):
|
||||
source = definition.recursiveset["source"]
|
||||
|
||||
items = outputs.get(source)
|
||||
#print(f"RECURSIVE DEBUG DURING {definition.name}")
|
||||
#print(items)
|
||||
|
||||
if items is None:
|
||||
print(f"No items available in {source} for {definition.name}")
|
||||
@@ -38,8 +40,15 @@ def buildRecursive(definition, outputs):
|
||||
outputs[definition.recursiveset["outputlabel"]] = item
|
||||
|
||||
for job in recursiveset:
|
||||
#print(f"RECURSIVE DEBUG DURING {job.name}")
|
||||
#print(item)
|
||||
#outputs, response = buildAction(job, outputs)
|
||||
outputs, response = executeContract(job, outputs)
|
||||
responses.append(response)
|
||||
|
||||
retain = definition.recursiveset.get("retain", True)
|
||||
|
||||
if not retain:
|
||||
outputs.pop(source, None)
|
||||
|
||||
return outputs, responses
|
||||
|
||||
Reference in New Issue
Block a user