15 lines
345 B
Ruby
15 lines
345 B
Ruby
# frozen_string_literal: true
|
|
|
|
class NewReleaseWorker
|
|
include ApplicationWorker
|
|
|
|
queue_namespace :notifications
|
|
feature_category :release_orchestration
|
|
|
|
def perform(release_id)
|
|
release = Release.preloaded.find_by_id(release_id)
|
|
return unless release
|
|
|
|
NotificationService.new.send_new_release_notifications(release)
|
|
end
|
|
end
|