2019-10-17 14:08:05 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class NewReleaseWorker
|
|
|
|
include ApplicationWorker
|
|
|
|
|
|
|
|
queue_namespace :notifications
|
2019-10-18 07:11:44 -04:00
|
|
|
feature_category :release_orchestration
|
2019-10-17 14:08:05 -04:00
|
|
|
|
|
|
|
def perform(release_id)
|
2019-10-31 23:06:26 -04:00
|
|
|
release = Release.preloaded.find_by_id(release_id)
|
2019-10-17 14:08:05 -04:00
|
|
|
return unless release
|
|
|
|
|
|
|
|
NotificationService.new.send_new_release_notifications(release)
|
|
|
|
end
|
|
|
|
end
|