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

finish_project_import_worker.rb « bulk_imports « workers « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 815101c89f3452b4d8c5ab47f2f131839d126271 (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 BulkImports
  class FinishProjectImportWorker
    include ApplicationWorker

    feature_category :importers
    sidekiq_options retry: 5
    data_consistency :sticky

    idempotent!

    def perform(project_id)
      project = Project.find_by_id(project_id)
      return unless project

      project.after_import
    end
  end
end