diff options
Diffstat (limited to 'app/workers/project_update_repository_storage_worker.rb')
-rw-r--r-- | app/workers/project_update_repository_storage_worker.rb | 32 |
1 files changed, 12 insertions, 20 deletions
diff --git a/app/workers/project_update_repository_storage_worker.rb b/app/workers/project_update_repository_storage_worker.rb index 5636eec8233..0d68c0e16f8 100644 --- a/app/workers/project_update_repository_storage_worker.rb +++ b/app/workers/project_update_repository_storage_worker.rb @@ -1,23 +1,15 @@ # frozen_string_literal: true -class ProjectUpdateRepositoryStorageWorker # rubocop:disable Scalability/IdempotentWorker - extend ::Gitlab::Utils::Override - include UpdateRepositoryStorageWorker - - private - - override :find_repository_storage_move - def find_repository_storage_move(repository_storage_move_id) - ProjectRepositoryStorageMove.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 +# This is a compatibility class to avoid calling a non-existent +# class from sidekiq during deployment. +# +# This class was moved to a namespace in https://gitlab.com/gitlab-org/gitlab/-/issues/299853. +# we cannot remove this class entirely because there can be jobs +# referencing it. +# +# We can get rid of this class in 14.0 +# https://gitlab.com/gitlab-org/gitlab/-/issues/322393 +class ProjectUpdateRepositoryStorageWorker < Projects::UpdateRepositoryStorageWorker + idempotent! + urgency :throttled end |