From 3b320d675fe058311d921e26cd89b2e703310b21 Mon Sep 17 00:00:00 2001 From: Dylan Griffith Date: Fri, 23 Feb 2018 09:08:12 +1100 Subject: Simplify retrying for ClusterWaitForIngressIpAddressWorker and style changes (#42643) --- app/models/clusters/applications/ingress.rb | 6 +++--- app/models/clusters/concerns/application_core.rb | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'app/models/clusters') 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 -- cgit v1.2.3