summaryrefslogtreecommitdiff
path: root/app/workers/gitlab/jira_import/stage/finish_import_worker.rb
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