Stopped passing outputs into executeContract and treating it as the beginning of the execution boundary
This commit is contained in:
@@ -3,20 +3,16 @@ from core.execution.operation import buildOperation
|
|||||||
from core.execution.monitor import buildMonitor
|
from core.execution.monitor import buildMonitor
|
||||||
#from core.runtime import manageFailure
|
#from core.runtime import manageFailure
|
||||||
from core.execution.recursive import buildRecursive
|
from core.execution.recursive import buildRecursive
|
||||||
#from core.runtime.createruntime import outputs
|
from core.runtime.createruntime import outputs
|
||||||
|
|
||||||
def executeContract(module, outputs):
|
|
||||||
#print(outputs)
|
|
||||||
|
|
||||||
|
def executeContract(module):
|
||||||
|
|
||||||
if module.kind == "operation":
|
if module.kind == "operation":
|
||||||
|
|
||||||
responses = buildOperation(module, outputs)
|
responses = buildOperation(module, outputs)
|
||||||
|
|
||||||
return responses
|
return responses
|
||||||
|
|
||||||
elif module.kind == "action":
|
elif module.kind == "action":
|
||||||
|
|
||||||
response = buildAction(module, outputs)
|
response = buildAction(module, outputs)
|
||||||
|
|
||||||
return response
|
return response
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ def manageLifecycle(module):
|
|||||||
while lifecycles[module.name]["mode"] == "continuous":
|
while lifecycles[module.name]["mode"] == "continuous":
|
||||||
lifecycles[module.name]["state"] = "active"
|
lifecycles[module.name]["state"] = "active"
|
||||||
|
|
||||||
response = executeContract(module, outputs)
|
executeContract(module)
|
||||||
|
|
||||||
if lifecycle_log:
|
if lifecycle_log:
|
||||||
print(f"{module.name} thread {lifecycles[module.name][module.name]} running in {lifecycles[module.name]['mode']} mode")
|
print(f"{module.name} thread {lifecycles[module.name][module.name]} running in {lifecycles[module.name]['mode']} mode")
|
||||||
@@ -35,7 +35,7 @@ def manageLifecycle(module):
|
|||||||
print(f"{module.name} thread {lifecycles[module.name][module.name]} running in {lifecycles[module.name]['mode']} mode")
|
print(f"{module.name} thread {lifecycles[module.name][module.name]} running in {lifecycles[module.name]['mode']} mode")
|
||||||
print(lifecycles)
|
print(lifecycles)
|
||||||
|
|
||||||
response = executeContract(module, outputs)
|
response = executeContract(module)
|
||||||
|
|
||||||
lifecycles[module.name]["state"] = "stopped"
|
lifecycles[module.name]["state"] = "stopped"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user