summaryrefslogtreecommitdiff
path: root/app/workers/incident_management/process_prometheus_alert_worker.rb
blob: 7b5c6fd9001f6d81e6a2bedf3dc73901dd3f4582 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# frozen_string_literal: true

module IncidentManagement
  class ProcessPrometheusAlertWorker # rubocop:disable Scalability/IdempotentWorker
    include ApplicationWorker

    sidekiq_options retry: 3

    queue_namespace :incident_management
    feature_category :incident_management
    worker_resource_boundary :cpu

    def perform(project_id, alert_hash)
      # no-op
      #
      # This worker is not scheduled anymore since
      # https://gitlab.com/gitlab-org/gitlab/-/merge_requests/35943
      # and will be removed completely via
      # https://gitlab.com/gitlab-org/gitlab/-/issues/227146
      # in 14.0.
    end
  end
end