diff options
Diffstat (limited to 'app/workers/prometheus/create_default_alerts_worker.rb')
-rw-r--r-- | app/workers/prometheus/create_default_alerts_worker.rb | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/app/workers/prometheus/create_default_alerts_worker.rb b/app/workers/prometheus/create_default_alerts_worker.rb index 94ac02c4c04..1a0fe7e8d56 100644 --- a/app/workers/prometheus/create_default_alerts_worker.rb +++ b/app/workers/prometheus/create_default_alerts_worker.rb @@ -13,19 +13,7 @@ module Prometheus idempotent! def perform(project_id) - project = Project.find_by_id(project_id) - - return unless project - - result = ::Prometheus::CreateDefaultAlertsService.new(project: project).execute - - log_info(result.message) if result.error? - end - - private - - def log_info(message) - logger.info(structured_payload(message: message)) + # No-op Will be removed in https://gitlab.com/gitlab-org/gitlab/-/issues/360756 end end end |