mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2026-02-20 09:47:30 +01:00
Handle NULL values on health_metrics column
This commit is contained in:
@@ -274,7 +274,7 @@ type NodeStateWithNode struct {
|
|||||||
func (r *NodeRepository) FindNodeStatesBefore(cutoff int64) ([]NodeStateWithNode, error) {
|
func (r *NodeRepository) FindNodeStatesBefore(cutoff int64) ([]NodeStateWithNode, error) {
|
||||||
rows, err := sq.Select(
|
rows, err := sq.Select(
|
||||||
"node_state.id", "node_state.time_stamp", "node_state.node_state",
|
"node_state.id", "node_state.time_stamp", "node_state.node_state",
|
||||||
"node_state.health_state", "node_state.health_metrics",
|
"node_state.health_state", "COALESCE(node_state.health_metrics, '')",
|
||||||
"node_state.cpus_allocated", "node_state.memory_allocated",
|
"node_state.cpus_allocated", "node_state.memory_allocated",
|
||||||
"node_state.gpus_allocated", "node_state.jobs_running",
|
"node_state.gpus_allocated", "node_state.jobs_running",
|
||||||
"node.hostname", "node.cluster", "node.subcluster",
|
"node.hostname", "node.cluster", "node.subcluster",
|
||||||
|
|||||||
Reference in New Issue
Block a user