X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/641552ee206524115aa63d68432ee23bf9d05278..2f83fcd45b4b23db2bb5bb4afbe1e863ebd77ec6:/apps/workbench/app/views/projects/_compute_node_summary.html.erb
diff --git a/apps/workbench/app/views/projects/_compute_node_summary.html.erb b/apps/workbench/app/views/projects/_compute_node_summary.html.erb
index 613751cb02..474fc7b9f5 100644
--- a/apps/workbench/app/views/projects/_compute_node_summary.html.erb
+++ b/apps/workbench/app/views/projects/_compute_node_summary.html.erb
@@ -9,23 +9,12 @@ SPDX-License-Identifier: AGPL-3.0 %>
- <% queued_containers = Container.order("modified_at asc").filter([["state", "in", ["Queued", "Locked"]], ["priority", ">", 0]]).limit(1) %>
- <% running_containers = Container.order("started_at desc").where(state: "Running").limit(1) %>
- <%= queued_containers.items_available %> |
- <%= running_containers.items_available %> |
+ <%= nodes.select {|n| n.crunch_worker_state == "busy" }.size %> |
+ <%= nodes.select {|n| n.crunch_worker_state == "idle" }.size %> |
- Pending containers |
- Running containers |
-
-
- <%= if queued_containers.first then render_runtime(Time.now - queued_containers.first.modified_at, false, false) else "-" end %> |
- <%= if running_containers.first then render_runtime(Time.now - running_containers.first.started_at, false, false) else "-" end %> |
-
-
- Queue wait |
- Last start |
+ Busy nodes |
+ Idle nodes |
-