From 46c0abafc104f6299e19106db576022554487dbc Mon Sep 17 00:00:00 2001 From: "CanbiZ (MickLesk)" <47820557+MickLesk@users.noreply.github.com> Date: Tue, 3 Mar 2026 13:55:54 +0100 Subject: [PATCH] Update service.go --- service.go | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/service.go b/service.go index 7e2e2cb..ca0d7a9 100644 --- a/service.go +++ b/service.go @@ -2337,6 +2337,17 @@ func main() { } } + // Auto-reclassify: addon and pve type failures → success (excluded from failure stats) + if in.Status == "failed" && (in.Type == "addon" || in.Type == "pve") { + in.Status = "success" + in.Error = "" + in.ErrorCategory = "" + in.ExitCode = 0 + if cfg.EnableReqLogging { + log.Printf("auto-reclassified %s failure as success: nsapp=%s", in.Type, in.NSAPP) + } + } + // Auto-reclassify: clients still send status="failed" for SIGINT/Ctrl+C and SIGHUP, // detect and reclassify as "aborted" server-side. errorLower := strings.ToLower(in.Error)