Skip to content

Commit

Permalink
change this key slightly and an env variable
Browse files Browse the repository at this point in the history
  • Loading branch information
johrstrom committed Nov 21, 2024
1 parent 144f627 commit 8553768
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/dashboard/config/configuration_singleton.rb
Original file line number Diff line number Diff line change
Expand Up @@ -401,8 +401,8 @@ def status_poll_delay
# to update the sessions card information.
# The default and minimum value is 10s = 10_000
def bc_sessions_poll_delay
bc_poll_delay = ENV['POLL_DELAY']
bc_poll_delay_int = bc_poll_delay.nil? ? config.fetch(:sessions_poll_delay, '10000').to_i : bc_poll_delay.to_i
bc_poll_delay = ENV['POLL_DELAY'] || ENV['OOD_BC_SESSIONS_POLL_DELAY']
bc_poll_delay_int = bc_poll_delay.nil? ? config.fetch(:bc_sessions_poll_delay, '10000').to_i : bc_poll_delay.to_i
bc_poll_delay_int < 10_000 ? 10_000 : bc_poll_delay_int
end

Expand Down

0 comments on commit 8553768

Please sign in to comment.