2019-01-23 02:40:05 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module HashedStorage
|
2020-02-19 18:09:10 +00:00
|
|
|
class RollbackerWorker # rubocop:disable Scalability/IdempotentWorker
|
2019-01-23 02:40:05 +00:00
|
|
|
include ApplicationWorker
|
|
|
|
|
|
|
|
queue_namespace :hashed_storage
|
2019-10-18 11:11:44 +00:00
|
|
|
feature_category :source_code_management
|
2019-01-23 02:40:05 +00:00
|
|
|
|
|
|
|
# @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_rollback(start: start, finish: finish)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|