2021-02-22 17:27:13 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2022-11-25 23:54:43 +05:30
|
|
|
module Onboarding
|
|
|
|
class UserAddedWorker
|
2021-02-22 17:27:13 +05:30
|
|
|
include ApplicationWorker
|
|
|
|
|
2021-10-27 15:23:28 +05:30
|
|
|
data_consistency :always
|
|
|
|
|
2021-06-08 01:23:25 +05:30
|
|
|
sidekiq_options retry: 3
|
|
|
|
|
2021-11-18 22:05:49 +05:30
|
|
|
feature_category :onboarding
|
2021-02-22 17:27:13 +05:30
|
|
|
urgency :low
|
|
|
|
|
|
|
|
idempotent!
|
|
|
|
|
|
|
|
def perform(namespace_id)
|
|
|
|
namespace = Namespace.find(namespace_id)
|
2022-10-11 01:57:18 +05:30
|
|
|
Onboarding::ProgressService.new(namespace).execute(action: :user_added)
|
2021-02-22 17:27:13 +05:30
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
2022-11-25 23:54:43 +05:30
|
|
|
|
|
|
|
# remove in %15.6 as per https://gitlab.com/gitlab-org/gitlab/-/issues/372432
|
|
|
|
Namespaces::OnboardingUserAddedWorker = Onboarding::UserAddedWorker
|