summaryrefslogtreecommitdiff
path: root/app/services/clusters/check_app_installation_progress_service.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/services/clusters/check_app_installation_progress_service.rb')
-rw-r--r--app/services/clusters/check_app_installation_progress_service.rb28
1 files changed, 0 insertions, 28 deletions
diff --git a/app/services/clusters/check_app_installation_progress_service.rb b/app/services/clusters/check_app_installation_progress_service.rb
deleted file mode 100644
index ff3398bbd63..00000000000
--- a/app/services/clusters/check_app_installation_progress_service.rb
+++ /dev/null
@@ -1,28 +0,0 @@
-module Clusters
- class CheckAppInstallationProgressService < BaseHelmService
- def execute
- return unless app.installing?
-
- FetchAppInstallationStatusService.new(app).execute do |phase, log|
- case phase
- when 'Succeeded'
- if app.make_installed
- FinalizeAppInstallationService.new(app).execute
- else
- app.make_errored!("Failed to update app record; #{app.errors}")
- end
- when 'Failed'
- app.make_errored!(log || 'Installation silently failed')
- FinalizeAppInstallationService.new(app).execute
- else
- if Time.now.utc - app.updated_at.to_time.utc > ClusterWaitForAppInstallationWorker::TIMEOUT
- app.make_errored!('App installation timeouted')
- else
- ClusterWaitForAppInstallationWorker.perform_in(
- ClusterWaitForAppInstallationWorker::EAGER_INTERVAL, app.name, app.id)
- end
- end
- end
- end
- end
-end