2020-12-16 00:09:58 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2022-09-23 18:12:59 +00:00
|
|
|
module Onboarding
|
|
|
|
class UserAddedWorker
|
2020-12-16 00:09:58 +00:00
|
|
|
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)
|
2022-09-10 00:09:59 +00:00
|
|
|
Onboarding::ProgressService.new(namespace).execute(action: :user_added)
|
2020-12-16 00:09:58 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|