summaryrefslogtreecommitdiff
path: root/app/workers/expire_pipeline_cache_worker.rb
diff options
context:
space:
mode:
authorToon Claes <toon@gitlab.com>2017-04-20 08:44:01 +0200
committerToon Claes <toon@gitlab.com>2017-04-24 10:07:01 +0200
commitc623c41c2f917e0773a6e3f0b6c78b027ca846f7 (patch)
tree83c081ab86fd07801fd9c9686245fe8cef1cc8b4 /app/workers/expire_pipeline_cache_worker.rb
parentccb9beeed0e418ef4dea201b3507bd2f4a14b4a2 (diff)
downloadgitlab-ce-c623c41c2f917e0773a6e3f0b6c78b027ca846f7.tar.gz
Use a better performing query to find all MRs for pipeline
And add some specs.
Diffstat (limited to 'app/workers/expire_pipeline_cache_worker.rb')
-rw-r--r--app/workers/expire_pipeline_cache_worker.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/workers/expire_pipeline_cache_worker.rb b/app/workers/expire_pipeline_cache_worker.rb
index 65e7b091506..0210d459048 100644
--- a/app/workers/expire_pipeline_cache_worker.rb
+++ b/app/workers/expire_pipeline_cache_worker.rb
@@ -2,8 +2,8 @@ class ExpirePipelineCacheWorker
include Sidekiq::Worker
include PipelineQueue
- def perform(id)
- pipeline = Ci::Pipeline.find(id)
+ def perform(pipeline_id)
+ pipeline = Ci::Pipeline.find(pipeline_id)
project = pipeline.project
store = Gitlab::EtagCaching::Store.new