2021-03-11 19:13:27 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module Namespaces
|
|
|
|
class InProductMarketingEmailsWorker # rubocop:disable Scalability/IdempotentWorker
|
|
|
|
include ApplicationWorker
|
|
|
|
include CronjobQueue # rubocop:disable Scalability/CronWorkerContext
|
|
|
|
|
|
|
|
feature_category :subgroups
|
|
|
|
urgency :low
|
|
|
|
|
|
|
|
def perform
|
2021-04-17 20:07:23 +05:30
|
|
|
return unless Gitlab::CurrentSettings.in_product_marketing_emails_enabled
|
2021-03-11 19:13:27 +05:30
|
|
|
return unless Gitlab::Experimentation.active?(:in_product_marketing_emails)
|
|
|
|
|
|
|
|
Namespaces::InProductMarketingEmailsService.send_for_all_tracks_and_intervals
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|