Welcome to mirror list, hosted at ThFree Co, Russian Federation.

onboarding_progress_worker.rb « namespaces « workers « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d4db55a92078dd15917da9ca5fe45dea71a55f96 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# frozen_string_literal: true

module Namespaces
  class OnboardingProgressWorker
    include ApplicationWorker

    sidekiq_options retry: 3

    feature_category :product_analytics
    tags :exclude_from_kubernetes
    urgency :low

    deduplicate :until_executed
    idempotent!

    def perform(namespace_id, action)
      namespace = Namespace.find_by_id(namespace_id)
      return unless namespace && action

      OnboardingProgressService.new(namespace).execute(action: action.to_sym)
    end
  end
end