Introduced stop signals and dependency gating for operations. Added mechanism to RMASS message sending protocol (Confirmed Working)
This commit is contained in:
@@ -9,16 +9,19 @@ def buildOperation(definition, outputs):
|
||||
from core.execution.executioncontract import executeContract
|
||||
actions = definition.actions
|
||||
responses = []
|
||||
|
||||
outputs["stopsignals"] = []
|
||||
for action in actions:
|
||||
if hasattr(action, "depends"):
|
||||
stop =any(
|
||||
dependency in outputs["stopsignals"]
|
||||
for dependency in action.depends
|
||||
)
|
||||
#stop = True
|
||||
#break
|
||||
|
||||
#if action == "recursiveset":
|
||||
#if hasattr(action, "recursiveset"):
|
||||
# from core.runtime.recursive import recursiveSet
|
||||
# outputs, responses = recursiveSet(action, outputs, responses)
|
||||
if stop:
|
||||
continue
|
||||
|
||||
#else:
|
||||
#outputs, response = buildAction(action, outputs)
|
||||
outputs, response = executeContract(action, outputs)
|
||||
|
||||
#if hasattr(action, recursive)
|
||||
|
||||
Reference in New Issue
Block a user