projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'main' from workbench2.git
[arvados.git]
/
apps
/
workbench
/
app
/
controllers
/
keep_disks_controller.rb
diff --git
a/apps/workbench/app/controllers/keep_disks_controller.rb
b/apps/workbench/app/controllers/keep_disks_controller.rb
index f57455b37fd6895262267bfc75e2df8e6dced594..c95ebdc25542b2b72bd89f1ef0e1d5ba5ede5c53 100644
(file)
--- a/
apps/workbench/app/controllers/keep_disks_controller.rb
+++ b/
apps/workbench/app/controllers/keep_disks_controller.rb
@@
-1,3
+1,7
@@
+# Copyright (C) The Arvados Authors. All rights reserved.
+#
+# SPDX-License-Identifier: AGPL-3.0
+
class KeepDisksController < ApplicationController
def create
defaults = { is_readable: true, is_writable: true }
class KeepDisksController < ApplicationController
def create
defaults = { is_readable: true, is_writable: true }
@@
-32,6
+36,7
@@
class KeepDisksController < ApplicationController
histogram_log = Log.
filter([[:event_type, '=', 'block-age-free-space-histogram']]).
order(:created_at => :desc).
histogram_log = Log.
filter([[:event_type, '=', 'block-age-free-space-histogram']]).
order(:created_at => :desc).
+ with_count('none').
limit(1)
histogram_log.each do |log_entry|
# We expect this block to only execute at most once since we
limit(1)
histogram_log.each do |log_entry|
# We expect this block to only execute at most once since we