diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-11-18 13:16:36 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-11-18 13:16:36 +0000 |
commit | 311b0269b4eb9839fa63f80c8d7a58f32b8138a0 (patch) | |
tree | 07e7870bca8aed6d61fdcc810731c50d2c40af47 /app/workers/clusters | |
parent | 27909cef6c4170ed9205afa7426b8d3de47cbb0c (diff) | |
download | gitlab-ce-311b0269b4eb9839fa63f80c8d7a58f32b8138a0.tar.gz |
Add latest changes from gitlab-org/gitlab@14-5-stable-eev14.5.0-rc42
Diffstat (limited to 'app/workers/clusters')
-rw-r--r-- | app/workers/clusters/integrations/check_prometheus_health_worker.rb (renamed from app/workers/clusters/applications/check_prometheus_health_worker.rb) | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/app/workers/clusters/applications/check_prometheus_health_worker.rb b/app/workers/clusters/integrations/check_prometheus_health_worker.rb index 4f85c5c5b7a..0c0d86e975c 100644 --- a/app/workers/clusters/applications/check_prometheus_health_worker.rb +++ b/app/workers/clusters/integrations/check_prometheus_health_worker.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true module Clusters - module Applications + module Integrations class CheckPrometheusHealthWorker include ApplicationWorker @@ -12,7 +12,6 @@ module Clusters include CronjobQueue # rubocop:enable Scalability/CronWorkerContext - queue_namespace :incident_management feature_category :incident_management urgency :low @@ -22,11 +21,11 @@ module Clusters def perform demo_project_ids = Gitlab::Monitor::DemoProjects.primary_keys - clusters = Clusters::Cluster.with_application_prometheus + clusters = Clusters::Cluster.with_integration_prometheus .with_project_http_integrations(demo_project_ids) # Move to a seperate worker with scoped context if expanded to do work on customer projects - clusters.each { |cluster| Clusters::Applications::PrometheusHealthCheckService.new(cluster).execute } + clusters.each { |cluster| Clusters::Integrations::PrometheusHealthCheckService.new(cluster).execute } end end end |