debian-mirror-gitlab/app/workers/namespaces/onboarding_user_added_worker.rb

21 lines
412 B
Ruby
Raw Normal View History

2021-02-22 17:27:13 +05:30
# frozen_string_literal: true
module Namespaces
class OnboardingUserAddedWorker
include ApplicationWorker
2021-06-08 01:23:25 +05:30
sidekiq_options retry: 3
2021-02-22 17:27:13 +05:30
feature_category :users
2021-06-08 01:23:25 +05:30
tags :exclude_from_kubernetes
2021-02-22 17:27:13 +05:30
urgency :low
idempotent!
def perform(namespace_id)
namespace = Namespace.find(namespace_id)
OnboardingProgressService.new(namespace).execute(action: :user_added)
end
end
end