Module: Gitlab::GithubImport::JobDelayCalculator
- Included in:
- ParallelScheduling, ReschedulingMethods
- Defined in:
- lib/gitlab/github_import/job_delay_calculator.rb
Overview
Used to calculate delay to spread sidekiq jobs on fetching records during import and upon job reschedule when the rate limit is reached
Instance Method Summary collapse
-
#parallel_import_batch ⇒ Object
Default batch settings for parallel import (can be redefined in Importer/Worker classes).
Instance Method Details
#parallel_import_batch ⇒ Object
Default batch settings for parallel import (can be redefined in Importer/Worker classes)
9 10 11 |
# File 'lib/gitlab/github_import/job_delay_calculator.rb', line 9 def parallel_import_batch { size: 1000, delay: 1.minute } end |