debian-mirror-gitlab/app/workers/hashed_storage/migrator_worker.rb
2021-06-08 01:23:25 +05:30

21 lines
563 B
Ruby

# frozen_string_literal: true
module HashedStorage
class MigratorWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker
sidekiq_options retry: 3
queue_namespace :hashed_storage
feature_category :source_code_management
tags :exclude_from_gitlab_com
# @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