blob: 9e3d570e20dfb79e9da45c0ab2a24ebdfe049de4 (
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
|
# frozen_string_literal: true
module Gitlab
module BitbucketServerImport
module Stage
class ImportPullRequestsWorker # rubocop:disable Scalability/IdempotentWorker
include StageMethods
private
# project - An instance of Project.
def import(project)
waiter = importer_class.new(project).execute
project.import_state.refresh_jid_expiration
AdvanceStageWorker.perform_async(
project.id,
{ waiter.key => waiter.jobs_remaining },
:notes
)
end
def importer_class
Importers::PullRequestsImporter
end
end
end
end
end
|