Handle occupied VMID holes and recover read-only runner updates

This commit is contained in:
omar committed 2026-09-24 18:20:08 +03:00
1 parent dfb285fc2e
commit b3373373e8
10 files changed
+261 -70

No files matched your search

+1
View File
@@ -144,6 +144,7 @@ func (s *Server) jobRoutes() {
}))
m.HandleFunc("GET /api/v1/dashboard", s.protected(false, s.dashboard))
}
const ownerStorageQuery = `SELECT COALESCE((SELECT sum(size) FROM uploads WHERE owner_id=$1),0)+COALESCE((SELECT sum(a.size) FROM artifacts a JOIN jobs j ON j.id=a.job_id WHERE j.owner_id=$1),0)`
func (s *Server) upload(w http.ResponseWriter, r *http.Request) {