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

module Snippets
  class ScheduleBulkRepositoryShardMovesWorker
    include ApplicationWorker

    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