2019-03-02 22:35:43 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module HashedStorage
|
|
|
|
class MigratorWorker
|
|
|
|
include ApplicationWorker
|
|
|
|
|
|
|
|
queue_namespace :hashed_storage
|
2019-12-21 20:55:43 +05:30
|
|
|
feature_category :source_code_management
|
2019-03-02 22:35:43 +05:30
|
|
|
|
|
|
|
# @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
|