gitlab-org--gitlab-foss/app/workers/new_release_worker.rb

17 lines
403 B
Ruby
Raw Normal View History

# frozen_string_literal: true
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