diff options
author | Dylan Griffith <dyl.griffith@gmail.com> | 2018-02-23 01:08:12 +0300 |
---|---|---|
committer | Dylan Griffith <dyl.griffith@gmail.com> | 2018-02-23 01:10:14 +0300 |
commit | 3b320d675fe058311d921e26cd89b2e703310b21 (patch) | |
tree | c8135b9041f238bc2d435fea26cf3c3dd6940cd8 /app/models/clusters | |
parent | 17e85dacdd73b51a173d1f4c5efea5e20ee8c55b (diff) |
Simplify retrying for ClusterWaitForIngressIpAddressWorker and style changes
(#42643)
Diffstat (limited to 'app/models/clusters')
-rw-r--r-- | app/models/clusters/applications/ingress.rb | 6 | ||||
-rw-r--r-- | app/models/clusters/concerns/application_core.rb | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/app/models/clusters/applications/ingress.rb b/app/models/clusters/applications/ingress.rb index e36fe9019c2..57ced0f5c44 100644 --- a/app/models/clusters/applications/ingress.rb +++ b/app/models/clusters/applications/ingress.rb @@ -37,12 +37,12 @@ module Clusters Gitlab::Kubernetes::Helm::InstallCommand.new(name, chart: chart, chart_values_file: chart_values_file) end - def sync_details + def schedule_status_update return unless installed? return if external_ip - ClusterWaitForIngressIpAddressWorker.perform_in( - ClusterWaitForIngressIpAddressWorker::INTERVAL, name, id, IP_ADDRESS_FETCH_RETRIES) + ClusterWaitForIngressIpAddressWorker.perform_async( + name, id, IP_ADDRESS_FETCH_RETRIES) end end end diff --git a/app/models/clusters/concerns/application_core.rb b/app/models/clusters/concerns/application_core.rb index 44b0fca3d01..623b836c0ed 100644 --- a/app/models/clusters/concerns/application_core.rb +++ b/app/models/clusters/concerns/application_core.rb @@ -24,7 +24,7 @@ module Clusters self.class.application_name end - def sync_details + def schedule_status_update # Override if you need extra data synchronized # from K8s after installation end |