summaryrefslogtreecommitdiff
path: root/app/workers/new_release_worker.rb
blob: 28d2517238e488193479dedf269ae56d1bf8c3b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# frozen_string_literal: true

class NewReleaseWorker
  include ApplicationWorker

  queue_namespace :notifications
  feature_category :release_orchestration

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

    NotificationService.new.send_new_release_notifications(release)
  end
end