Geo: Cached Gitlab::Geo.secondary_nodes returns an Array and does not respond to find_each
https://sentry.gitlab.net/gitlab/gitlab-geo-internal-develop-is/issues/605669/
NoMethodError: undefined method `find_each' for #<Array:0x00007fdfba47f378>
Did you mean? find_all
geo/metrics_update_service.rb:17:in `execute'
Gitlab::Geo.secondary_nodes.find_each { |node| update_prometheus_metrics(node, node.status) }
geo/metrics_update_worker.rb:12:in `block in perform'
try_obtain_lease { Geo::MetricsUpdateService.new.execute }
exclusive_lease_guard.rb:24:in `try_obtain_lease'
yield lease
geo/metrics_update_worker.rb:12:in `perform'
try_obtain_lease { Geo::MetricsUpdateService.new.execute }
sidekiq/processor.rb:185:in `execute_job'
worker.perform(*cloned_args)
...
(48 additional frame(s) were not displayed)
undefined method `find_each' for #<Array:0x00007fdfba47f378>
Did you mean? find_all