summaryrefslogtreecommitdiff
path: root/app/workers/gitlab/github_import/import_pull_request_worker.rb
blob: dbc1feca2e0c188a00c02c8a543957b21819006d (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
# frozen_string_literal: true

module Gitlab
  module GithubImport
    class ImportPullRequestWorker # rubocop:disable Scalability/IdempotentWorker
      include ObjectImporter

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

      def importer_class
        Importer::PullRequestImporter
      end

      def object_type
        :pull_request
      end

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