Shifted to importing executeContract after filter checks to prevent excessive importing
This commit is contained in:
@@ -12,8 +12,6 @@ from core.console import console
|
||||
|
||||
def buildOperation(definition, outputs):
|
||||
process_log = True
|
||||
|
||||
from core.execution.executioncontract import executeContract
|
||||
|
||||
actions = definition.actions
|
||||
currentOp = processregistry.registerProcess(definition)
|
||||
@@ -38,7 +36,9 @@ def buildOperation(definition, outputs):
|
||||
if action.kind == "action":
|
||||
currentOp[action.name] = {}
|
||||
|
||||
response = executeContract(action, outputs)
|
||||
from core.execution.executioncontract import executeContract
|
||||
|
||||
response = executeContract(action)
|
||||
|
||||
responses.append(response)
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ def buildRecursive(definition, outputs):
|
||||
currentOp = processregistry.registerProcess(definition)
|
||||
|
||||
responses = []
|
||||
from core.execution.executioncontract import executeContract
|
||||
|
||||
recursiveset = definition.recursiveset["actions"]
|
||||
|
||||
source = definition.recursiveset["source"]
|
||||
@@ -52,8 +52,10 @@ def buildRecursive(definition, outputs):
|
||||
|
||||
if job.kind == "action":
|
||||
currentOp[job.name] = {}
|
||||
|
||||
from core.execution.executioncontract import executeContract
|
||||
|
||||
response = executeContract(job, outputs)
|
||||
response = executeContract(job)
|
||||
responses.append(response)
|
||||
|
||||
if job.kind == "action":
|
||||
|
||||
Reference in New Issue
Block a user