Class: Gitlab::GithubImport::ImportPullRequestWorker
- Inherits:
-
Object
- Object
- Gitlab::GithubImport::ImportPullRequestWorker
show all
- Includes:
- ObjectImporter
- Defined in:
- app/workers/gitlab/github_import/import_pull_request_worker.rb
Overview
rubocop:disable Scalability/IdempotentWorker
Constant Summary
ObjectImporter::NotRetriableError
Instance Method Summary
collapse
#import, #increment_object_counter?, #perform_failure
Instance Method Details
#importer_class ⇒ Object
12
13
14
|
# File 'app/workers/gitlab/github_import/import_pull_request_worker.rb', line 12
def importer_class
Importer::PullRequestImporter
end
|
#object_type ⇒ Object
16
17
18
|
# File 'app/workers/gitlab/github_import/import_pull_request_worker.rb', line 16
def object_type
:pull_request
end
|
#parallel_import_batch ⇒ Object
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_class ⇒ Object