summaryrefslogtreecommitdiff
path: root/app/workers/project_schedule_bulk_repository_shard_moves_worker.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/workers/project_schedule_bulk_repository_shard_moves_worker.rb')
-rw-r--r--app/workers/project_schedule_bulk_repository_shard_moves_worker.rb18
1 files changed, 10 insertions, 8 deletions
diff --git a/app/workers/project_schedule_bulk_repository_shard_moves_worker.rb b/app/workers/project_schedule_bulk_repository_shard_moves_worker.rb
index 4d2a6b47e3c..23d1594e4d9 100644
--- a/app/workers/project_schedule_bulk_repository_shard_moves_worker.rb
+++ b/app/workers/project_schedule_bulk_repository_shard_moves_worker.rb
@@ -1,13 +1,15 @@
# frozen_string_literal: true
-class ProjectScheduleBulkRepositoryShardMovesWorker
- include ApplicationWorker
-
+# 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 ProjectScheduleBulkRepositoryShardMovesWorker < Projects::ScheduleBulkRepositoryShardMovesWorker
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