Class: Gitlab::GithubImport::ImportPullRequestWorker

Inherits:
Object
  • Object
show all
Includes:
ObjectImporter
Defined in:
app/workers/gitlab/github_import/import_pull_request_worker.rb

Overview

rubocop:disable Scalability/IdempotentWorker

Constant Summary

Constants included from ObjectImporter

ObjectImporter::NotRetriableError

Instance Method Summary collapse

Methods included from ObjectImporter

#import, #increment_object_counter?, #perform_failure

Instance Method Details

#importer_classObject



12
13
14
# File 'app/workers/gitlab/github_import/import_pull_request_worker.rb', line 12

def importer_class
  Importer::PullRequestImporter
end

#object_typeObject



16
17
18
# File 'app/workers/gitlab/github_import/import_pull_request_worker.rb', line 16

def object_type
  :pull_request
end

#parallel_import_batchObject



20
21
22
# File 'app/workers/gitlab/github_import/import_pull_request_worker.rb', line 20

def parallel_import_batch
  { size: 200, delay: 1.minute }
end

#representation_classObject



8
9
10
# File 'app/workers/gitlab/github_import/import_pull_request_worker.rb', line 8

def representation_class
  Gitlab::GithubImport::Representation::PullRequest
end