X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/1ca9c477ffa476305a920a0df7ae1e8d5b69c8b2..441ef97e93a951b349356df96d8a6ef604c6cab7:/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 f57455b37f..bbf18e591b 100644 --- a/apps/workbench/app/controllers/keep_disks_controller.rb +++ b/apps/workbench/app/controllers/keep_disks_controller.rb @@ -32,6 +32,7 @@ class KeepDisksController < ApplicationController 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