From 372ac38414be9881c2a37cb81c0a856434601917 Mon Sep 17 00:00:00 2001 From: Jeff Ohrstrom Date: Tue, 19 Nov 2024 11:08:30 -0500 Subject: [PATCH] correct this env variable and the ondemand.d config key --- apps/dashboard/config/configuration_singleton.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/dashboard/config/configuration_singleton.rb b/apps/dashboard/config/configuration_singleton.rb index 68ecff7324..d2788d95bb 100644 --- a/apps/dashboard/config/configuration_singleton.rb +++ b/apps/dashboard/config/configuration_singleton.rb @@ -391,8 +391,8 @@ def ood_bc_card_time # Returns the number of milliseconds to wait between calls to the system status page # The default is 30s and the minimum is 10s. def status_poll_delay - status_poll_delay = ENV['STATUS_POLL_DELAY'] - status_poll_delay_int = status_poll_delay.nil? ? config.fetch(:status_delay, '30000').to_i : status_poll_delay.to_i + status_poll_delay = ENV['OOD_STATUS_POLL_DELAY'] + status_poll_delay_int = status_poll_delay.nil? ? config.fetch(:status_poll_delay, '30000').to_i : status_poll_delay.to_i status_poll_delay_int < 10_000 ? 10_000 : status_poll_delay_int end