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/expire_pipeline_cache_worker.rb')
-rw-r--r--app/workers/expire_pipeline_cache_worker.rb27
1 files changed, 0 insertions, 27 deletions
diff --git a/app/workers/expire_pipeline_cache_worker.rb b/app/workers/expire_pipeline_cache_worker.rb
deleted file mode 100644
index 9a0c617da57..00000000000
--- a/app/workers/expire_pipeline_cache_worker.rb
+++ /dev/null
@@ -1,27 +0,0 @@
-# frozen_string_literal: true
-
-# rubocop: disable Scalability/IdempotentWorker
-class ExpirePipelineCacheWorker
- include ApplicationWorker
-
- sidekiq_options retry: 3
- include PipelineQueue
-
- queue_namespace :pipeline_cache
- urgency :high
- worker_resource_boundary :cpu
- data_consistency :delayed
-
- # This worker _should_ be idempotent, but due to us moving this to data_consistency :delayed
- # and an ongoing incompatibility between the two switches, we need to disable this.
- # Uncomment once https://gitlab.com/gitlab-org/gitlab/-/issues/325291 is resolved
- # idempotent!
-
- def perform(pipeline_id)
- pipeline = Ci::Pipeline.find_by_id(pipeline_id)
- return unless pipeline
-
- Ci::ExpirePipelineCacheService.new.execute(pipeline)
- end
-end
-# rubocop:enable Scalability/IdempotentWorker