Extended Set Availability to use resolve module and applied execution filter conditions

This commit is contained in:
Lyncoln
2026-10-21 00:38:25 -04:00
parent 8a4f213ea7
commit 9b4206b86a
+17 -3
View File
@@ -8,10 +8,15 @@ id = "setavailable"
showstatus = True showstatus = True
skipstep = { #skipstep = {
"checkavailable": "validTo >= 3600" # "checkavailable": "validTo >= 3600"
} #}
resolve = {
"get": {
"availabletime": ["availabletime"],
},
}
availabletime = int(os.environ.get("AVAILABLE_DURATION",3)) availabletime = int(os.environ.get("AVAILABLE_DURATION",3))
duration = availabletime - 1 duration = availabletime - 1
@@ -50,3 +55,12 @@ recoverPolicy = {
KeyError:[False], KeyError:[False],
TypeError: [], TypeError: [],
} }
filters = [
{
"filterkey": "availabletime",
"operator": ">=",
"filtervalue": 3600,
"print": "Availabile time above threshold. Skipping Set Available...",
},
]