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

project_create_worker.rb « authorized_project_update « workers « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 1f19168cd36c8382849673dae1280c13d81f0f8f (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 AuthorizedProjectUpdate
  class ProjectCreateWorker
    include ApplicationWorker

    data_consistency :always

    sidekiq_options retry: 3

    feature_category :authentication_and_authorization
    urgency :low
    queue_namespace :authorized_project_update

    idempotent!

    def perform(project_id)
      project = Project.find(project_id)

      AuthorizedProjectUpdate::ProjectCreateService.new(project).execute
    end
  end
end