summaryrefslogtreecommitdiff
path: root/app/workers/expire_pipeline_cache_worker.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/workers/expire_pipeline_cache_worker.rb')
-rw-r--r--app/workers/expire_pipeline_cache_worker.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/workers/expire_pipeline_cache_worker.rb b/app/workers/expire_pipeline_cache_worker.rb
index 64f73d1fba1..07e6939d1c7 100644
--- a/app/workers/expire_pipeline_cache_worker.rb
+++ b/app/workers/expire_pipeline_cache_worker.rb
@@ -19,7 +19,7 @@ class ExpirePipelineCacheWorker
# rubocop: disable CodeReuse/ActiveRecord
def perform(pipeline_id)
- pipeline = Ci::Pipeline.eager_load_project.find_by(id: pipeline_id)
+ pipeline = Ci::Pipeline.find_by(id: pipeline_id)
return unless pipeline
Ci::ExpirePipelineCacheService.new.execute(pipeline)