Udated runtime contract to stop doing unnecessary imports and introduced dedicated process registry. Confirmed working.
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
#def checkDependency(action, outputs):
|
||||
def checkDependency(action, outputs, operation):
|
||||
#from core.execution.processregistry import registeredOp
|
||||
|
||||
def checkDependency(action):
|
||||
from core.execution.processregistry import registeredOp
|
||||
if hasattr(action, "depends"):
|
||||
stop = any(
|
||||
dependency in outputs["processes"][operation.name]["stopsignals"]
|
||||
#dependency in outputs["stopsignals"]
|
||||
dependency in registeredOp["stopsignals"]
|
||||
for dependency in action.depends
|
||||
)
|
||||
|
||||
@@ -12,9 +13,10 @@ def checkDependency(action, outputs, operation):
|
||||
|
||||
return False
|
||||
|
||||
#def addStopSignal(action, outputs):
|
||||
def addStopSignal(action, outputs, operation):
|
||||
def addStopSignal(action):
|
||||
from core.execution.processregistry import registeredOp
|
||||
|
||||
if hasattr(action, "depends"):
|
||||
outputs["processes"][operation.name]["stopsignals"].append(action.alias)
|
||||
#outputs["stopsignals"].append(action.alias)
|
||||
|
||||
registeredOp["stopsignals"].append(action.alias)
|
||||
return
|
||||
Reference in New Issue
Block a user