2020-12-16 00:09:58 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module Namespaces
|
|
|
|
class OnboardingUserAddedWorker
|
|
|
|
include ApplicationWorker
|
|
|
|
|
2021-07-21 12:09:35 +00:00
|
|
|
data_consistency :always
|
|
|
|
|
2021-04-30 18:10:09 +00:00
|
|
|
sidekiq_options retry: 3
|
|
|
|
|
2021-09-22 15:12:06 +00:00
|
|
|
feature_category :onboarding
|
2020-12-16 00:09:58 +00:00
|
|
|
urgency :low
|
|
|
|
|
|
|
|
idempotent!
|
|
|
|
|
|
|
|
def perform(namespace_id)
|
|
|
|
namespace = Namespace.find(namespace_id)
|
|
|
|
OnboardingProgressService.new(namespace).execute(action: :user_added)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|