Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

fix(api): count warning-status workloads as running in workloads summary

rcourtmanb349366dae9d
diff --git a/internal/api/router.go b/internal/api/router.go
index 992878692f..e898bbcf78 100644
--- a/internal/api/router.go
+++ b/internal/api/router.go
@@ -8259,6 +8259,10 @@ func workloadSummaryStatusIsRunning(runtimeState string, status unifiedresources
switch status {
case unifiedresources.StatusOnline:
return true
+ case unifiedresources.StatusWarning:
+ // Warning is an attention state on a running workload (degraded
+ // guest state, stale source data); power-off maps to StatusOffline.
+ return true
case unifiedresources.StatusOffline:
return false
}