Commit f2f5cb67 authored by Douwe Maan's avatar Douwe Maan

Merge branch 'fix/1892' into 'master'

Execute inflections initializer earlier

Closes #1892

See merge request !1408
parents 74aeb0cb d2d7d5a6
......@@ -5,13 +5,10 @@ module Geo
KEYS = %w(health repositories_count repositories_synced_count repositories_failed_count lfs_objects_total lfs_objects_synced).freeze
# HTTParty timeout
default_timeout current_application_settings.geo_status_timeout
def call(status_url)
values =
begin
response = self.class.get(status_url, headers: headers)
response = self.class.get(status_url, headers: headers, timeout: timeout)
if response.success?
response.parsed_response.values_at(*KEYS)
......@@ -30,5 +27,9 @@ module Geo
def headers
Gitlab::Geo::BaseRequest.new.headers
end
def timeout
current_application_settings.geo_status_timeout
end
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment