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

18 lines
426 B
Ruby

# frozen_string_literal: true
module Snippets
class ScheduleBulkRepositoryShardMovesWorker
include ApplicationWorker
sidekiq_options retry: 3
idempotent!
feature_category :gitaly
urgency :throttled
def perform(source_storage_name, destination_storage_name = nil)
Snippets::ScheduleBulkRepositoryShardMovesService.new.execute(source_storage_name, destination_storage_name)
end
end
end