summaryrefslogtreecommitdiff
path: root/app/workers/hashed_storage/migrator_worker.rb
blob: 49e347d4060b86b8031f0f34b3deddd0f94c5b8d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# frozen_string_literal: true

module HashedStorage
  class MigratorWorker
    include ApplicationWorker

    queue_namespace :hashed_storage

    # @param [Integer] start initial ID of the batch
    # @param [Integer] finish last ID of the batch
    def perform(start, finish)
      migrator = Gitlab::HashedStorage::Migrator.new
      migrator.bulk_migrate(start: start, finish: finish)
    end
  end
end