blob: 1563261fa4aaaf903717e149bfb74b89aa0876e8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
# frozen_string_literal: true
module Gitlab
module BitbucketImport
class ParallelImporter
def self.async?
true
end
def self.imports_repository?
true
end
def self.track_start_import(project)
Gitlab::Import::Metrics.new(:bitbucket_importer, project).track_start_import
end
def initialize(project)
@project = project
end
def execute
Gitlab::Import::SetAsyncJid.set_jid(project.import_state)
Stage::ImportRepositoryWorker
.with_status
.perform_async(project.id)
true
end
private
attr_reader :project
end
end
end
|