Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/workers/hashed_storage/base_worker.rb')
-rw-r--r--app/workers/hashed_storage/base_worker.rb24
1 files changed, 0 insertions, 24 deletions
diff --git a/app/workers/hashed_storage/base_worker.rb b/app/workers/hashed_storage/base_worker.rb
deleted file mode 100644
index 372440996d9..00000000000
--- a/app/workers/hashed_storage/base_worker.rb
+++ /dev/null
@@ -1,24 +0,0 @@
-# frozen_string_literal: true
-
-module HashedStorage
- class BaseWorker # rubocop:disable Scalability/IdempotentWorker
- include ExclusiveLeaseGuard
- include WorkerAttributes
-
- feature_category :source_code_management
-
- LEASE_TIMEOUT = 30.seconds.to_i
- LEASE_KEY_SEGMENT = 'project_migrate_hashed_storage_worker'
-
- protected
-
- def lease_key
- # we share the same lease key for both migration and rollback so they don't run simultaneously
- "#{LEASE_KEY_SEGMENT}:#{project_id}"
- end
-
- def lease_timeout
- LEASE_TIMEOUT
- end
- end
-end