gitlab-org--gitlab-foss/app/workers/projects/update_repository_storage_w...

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

28 lines
758 B
Ruby
Raw Permalink Normal View History

# frozen_string_literal: true
module Projects
class UpdateRepositoryStorageWorker # rubocop:disable Scalability/IdempotentWorker
extend ::Gitlab::Utils::Override
include ::UpdateRepositoryStorageWorker
sidekiq_options retry: 3
private
override :find_repository_storage_move
def find_repository_storage_move(repository_storage_move_id)
::Projects::RepositoryStorageMove.find(repository_storage_move_id)
end
override :find_container
def find_container(container_id)
Project.find(container_id)
end
override :update_repository_storage
def update_repository_storage(repository_storage_move)
::Projects::UpdateRepositoryStorageService.new(repository_storage_move).execute
end
end
end