2021-02-22 18:10:55 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module Projects
|
|
|
|
class ScheduleBulkRepositoryShardMovesWorker
|
|
|
|
include ApplicationWorker
|
|
|
|
|
2021-07-21 12:09:35 +00:00
|
|
|
data_consistency :always
|
|
|
|
|
2021-04-30 18:10:09 +00:00
|
|
|
sidekiq_options retry: 3
|
|
|
|
|
2021-02-22 18:10:55 +00:00
|
|
|
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
|