Operational Remediation Reports
Cancellation Flag Remediation Report
Compare a recorded failure count against pause and abort limits and turn it into a run, pause, or abort remediation action.
Cancellation Flag Remediation Report
cancellation_flag.lua
local failures =
local pause_limit = 1
local abort_limit = 3
local action = "run"
if failures > abort_limit then
action = "abort"
elseif failures > pause_limit then
action = "pause"
end
print("failures=" .. failures .. " pause=" .. pause_limit .. " abort=" .. abort_limit .. " " .. action)
local failures =
local pause_limit = 1
local abort_limit = 3
local action = "run"
if failures > abort_limit then
action = "abort"
elseif failures > pause_limit then
action = "pause"
end
print("failures=" .. failures .. " pause=" .. pause_limit .. " abort=" .. abort_limit .. " " .. action)
local failures =
local pause_limit = 1
local abort_limit = 3
local action = "run"
if failures > abort_limit then
action = "abort"
elseif failures > pause_limit then
action = "pause"
end
print("failures=" .. failures .. " pause=" .. pause_limit .. " abort=" .. abort_limit .. " " .. action)
failure thresholds
The failure count and fixed pause/abort limits are scalars, so the remediation action stays deterministic without watching a live cancellation flag.