Welcome to mirror list, hosted at ThFree Co, Russian Federation.

new_release_worker.rb « workers « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: fa4703d10f2777597ee7996b522c92359fb84d64 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# frozen_string_literal: true

# TODO: Worker can be removed in 13.2:
# https://gitlab.com/gitlab-org/gitlab/-/issues/218231
class NewReleaseWorker # rubocop:disable Scalability/IdempotentWorker
  include ApplicationWorker

  queue_namespace :notifications
  feature_category :release_orchestration
  weight 2

  def perform(release_id)
    release = Release.preloaded.find_by_id(release_id)
    return unless release

    NotificationService.new.send_new_release_notifications(release)
  end
end