2021-04-17 20:07:23 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module Projects
|
|
|
|
class ScheduleBulkRepositoryShardMovesWorker
|
|
|
|
include ApplicationWorker
|
|
|
|
|
2021-10-27 15:23:28 +05:30
|
|
|
data_consistency :always
|
|
|
|
|
2021-06-08 01:23:25 +05:30
|
|
|
sidekiq_options retry: 3
|
|
|
|
|
2021-04-17 20:07:23 +05:30
|
|
|
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
|