fix(nodes): add disk columns to ListNodes SELECT (scanNodes 37/39 mismatch → 500)
Build backend images / build content-svc (push) Failing after 50s
Build backend images / build file-svc (push) Failing after 56s
Build backend images / build gateway (push) Failing after 54s
Build backend images / build identity-svc (push) Failing after 58s
Build backend images / build notification-svc (push) Failing after 58s
Build backend images / build render-svc (push) Failing after 51s
Build backend images / build studio-svc (push) Failing after 59s

The disk-column append only hit GetNodeByID (whitespace differed); ListNodes
lacked last_disk_pct/disk_total_gb, so the node list 500'd and rendered empty.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
soroush.asadi
2026-06-04 21:00:52 +03:30
parent 0c461ff841
commit 010f975a0e
+2 -1
View File
@@ -31,7 +31,8 @@ func (s *Store) ListNodes(ctx context.Context, region, status string) ([]*models
lifetime_task_count, lifetime_crash_count, consecutive_failures, lifetime_task_count, lifetime_crash_count, consecutive_failures,
priority, is_active, accepts_new_jobs, priority, is_active, accepts_new_jobs,
last_maintenance_at, next_maintenance_at, maintenance_reason, last_maintenance_at, next_maintenance_at, maintenance_reason,
cached_template_md5s, cache_used_gb, created_at, updated_at cached_template_md5s, cache_used_gb, created_at, updated_at,
last_disk_pct, disk_total_gb
FROM render.render_nodes FROM render.render_nodes
WHERE is_active = TRUE` WHERE is_active = TRUE`
args := pgx.NamedArgs{} args := pgx.NamedArgs{}