summaryrefslogtreecommitdiff
path: root/app/workers/namespaces/onboarding_pipeline_created_worker.rb
blob: e1de6d0046baf2d4bd02dd351a1a9e8e0b7f16e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# frozen_string_literal: true

module Namespaces
  class OnboardingPipelineCreatedWorker
    include ApplicationWorker

    feature_category :subgroups
    urgency :low

    deduplicate :until_executing
    idempotent!

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

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