X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/dcf5e0cef46e3aa3baba27da3f922b1c357ba3f3..c4fa80c6ed2445e1e384455944eb6c4108906cad:/apps/workbench/app/views/projects/_compute_node_status.html.erb diff --git a/apps/workbench/app/views/projects/_compute_node_status.html.erb b/apps/workbench/app/views/projects/_compute_node_status.html.erb index db7326eb88..527dc643e5 100644 --- a/apps/workbench/app/views/projects/_compute_node_status.html.erb +++ b/apps/workbench/app/views/projects/_compute_node_status.html.erb @@ -1,48 +1,61 @@ -
+

Queue

+<% queue = Job.queue %> +<% if queue.any? %> - <% nodes = Node.all %> - -
-
- - - - - - - - - - - - - - - - - - - -
0<%= nodes.select {|n| n.crunch_worker_state.in? ["busy", "idle"] }.size %><%= nodes.select {|n| n.crunch_worker_state == "busy" }.size %><%= nodes.select {|n| n.crunch_worker_state == "idle" }.size %>
QueueNodesBusyIdle
+<% queue.each do |j| %> +
+
+ <%= link_to_if_arvados_object j, friendly_name: true %> +
+
+ <%= render_localized_date(j[:created_at]) %> +
+
+ <%= render_runtime(Time.now - j[:created_at], false) %> +
+
+ <%= j[:priority] %>
-
-
- <% nodes.sort_by { |n| n.hostname || "" }.each do |n| %> - <% if n.crunch_worker_state.in? ["busy", "idle"] %> -
- - <%= n.hostname %> - -
- state: <%= n.crunch_worker_state %>
- <% [:total_cpu_cores, :total_ram_mb, :total_scratch_mb].each do |i| %> - <%= i.to_s.gsub '_', ' ' %>: <%= n.info[i] %>
- <% end %> -
-
- <% end %> - <% end %> +<% end %> +
+
+ Job +
+
+ Submitted
+
+ Queued +
+
+ Priority +
+
+ <% if Job.queue_size > queue.size %> + Note: some items in the queue are not visible to you. + <% end %> +
+<% else %> + There are currently no jobs in your queue. +<% end %> + +

Node status

+
+ <% nodes.sort_by { |n| n.hostname || "" }.each do |n| %> + <% if n.crunch_worker_state.in? ["busy", "idle"] and (Time.now - n[:last_ping_at]) < 3600 %> +
+ + <%= n.hostname %> + +
+ state: <%= n.crunch_worker_state %>
+ <% [:total_cpu_cores, :total_ram_mb, :total_scratch_mb].each do |i| %> + <%= i.to_s.gsub '_', ' ' %>: <%= n.info[i] %>
+ <% end %> +
+
+ <% end %> + <% end %>