summaryrefslogtreecommitdiff
path: root/app/workers/projects/schedule_bulk_repository_shard_moves_worker.rb
blob: 3841ae9b922f5fadba4e5fabdea039afe045965e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# frozen_string_literal: true

module Projects
  class ScheduleBulkRepositoryShardMovesWorker
    include ApplicationWorker

    idempotent!
    feature_category :gitaly
    urgency :throttled

    def perform(source_storage_name, destination_storage_name = nil)
      Projects::ScheduleBulkRepositoryShardMovesService.new.execute(source_storage_name, destination_storage_name)
    end
  end
end