diff --git a/plugins/rmass/actions/setavailable.py b/plugins/rmass/actions/setavailable.py index 94a3f33..d6e4ded 100644 --- a/plugins/rmass/actions/setavailable.py +++ b/plugins/rmass/actions/setavailable.py @@ -8,10 +8,15 @@ id = "setavailable" showstatus = True -skipstep = { - "checkavailable": "validTo >= 3600" -} +#skipstep = { +# "checkavailable": "validTo >= 3600" +#} +resolve = { + "get": { + "availabletime": ["availabletime"], + }, +} availabletime = int(os.environ.get("AVAILABLE_DURATION",3)) duration = availabletime - 1 @@ -50,3 +55,12 @@ recoverPolicy = { KeyError:[False], TypeError: [], } + +filters = [ + { + "filterkey": "availabletime", + "operator": ">=", + "filtervalue": 3600, + "print": "Availabile time above threshold. Skipping Set Available...", + }, +] \ No newline at end of file