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

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

module Gitlab
  module JiraImport
    module Stage
      class FinishImportWorker # rubocop:disable Scalability/IdempotentWorker
        include Gitlab::JiraImport::ImportWorker

        private

        def import(project)
          JiraImport.cache_cleanup(project.id)
          project.latest_jira_import.finish!
        end
      end
    end
  end
end