v1 server and lifecycle manager working. execution contract added
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
def skipStep(definition, action, outputs):
|
||||
try:
|
||||
if action in definition.skipstep:
|
||||
condition = definition.skipstep[action]
|
||||
|
||||
current_value = outputs[condition["output"]]
|
||||
|
||||
if condition["operator"] == ">=":
|
||||
if current_value >= condition["value"]:
|
||||
print(f"Skipping {action.name}")
|
||||
return True
|
||||
|
||||
except TypeError, KeyError:
|
||||
return False
|
||||
Reference in New Issue
Block a user