Added stopsignal module with checkDependency and addStopSignal definitions
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
from core.execution.action import action
|
||||
from core.runtime import buildSelect, buildOutput, buildSave, loadSave, saveRow, readRow, buildLog
|
||||
from core.runtime.image import buildImage
|
||||
#from core.runtime.select import buildSelect3
|
||||
from core.runtime.resolver import resolveItem, extractItem
|
||||
from core.runtime.applyconditions import applyConditions
|
||||
from core.runtime.responsepolicy import responsePolicy
|
||||
from core.runtime.stopsignals import addStopSignal
|
||||
|
||||
def buildPreRuntimeAttr(action, outputs):
|
||||
outputs = loadSave(action, outputs)
|
||||
@@ -13,6 +15,9 @@ def buildPreRuntimeAttr(action, outputs):
|
||||
resolved, outputs = readRow(action, resolved, outputs)
|
||||
|
||||
match, filter = applyConditions(action, resolved, outputs)
|
||||
|
||||
if match:
|
||||
outputs = addStopSignal(action, outputs)
|
||||
|
||||
return outputs, resolved, match, filter
|
||||
|
||||
@@ -20,13 +25,12 @@ def buildPreRuntimeAttr(action, outputs):
|
||||
def buildRuntimeAttr(action, outputs, resolved, response):
|
||||
outputs, resolved = responsePolicy(response, action, outputs, resolved)
|
||||
|
||||
if not response.ok:
|
||||
if hasattr(action, "depends"):
|
||||
outputs["stopsignals"].append(action.alias)
|
||||
return outputs, response
|
||||
|
||||
outputs = buildOutput(response, action, outputs)
|
||||
|
||||
if not response.ok:
|
||||
outputs = addStopSignal(action, outputs)
|
||||
return outputs, response
|
||||
|
||||
resolved = extractItem(action, outputs, resolved)
|
||||
|
||||
outputs = buildImage(response, action, outputs)
|
||||
|
||||
Reference in New Issue
Block a user