debian-mirror-gitlab/app/workers/new_release_worker.rb

16 lines
345 B
Ruby
Raw Normal View History

2019-12-21 20:55:43 +05:30
# frozen_string_literal: true
class NewReleaseWorker
include ApplicationWorker
queue_namespace :notifications
feature_category :release_orchestration
def perform(release_id)
2019-12-26 22:10:19 +05:30
release = Release.preloaded.find_by_id(release_id)
2019-12-21 20:55:43 +05:30
return unless release
NotificationService.new.send_new_release_notifications(release)
end
end