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:
authorToon Claes <toon@gitlab.com>2017-04-20 09:44:01 +0300
committerToon Claes <toon@gitlab.com>2017-04-24 11:07:01 +0300
commitc623c41c2f917e0773a6e3f0b6c78b027ca846f7 (patch)
tree83c081ab86fd07801fd9c9686245fe8cef1cc8b4 /app/workers
parentccb9beeed0e418ef4dea201b3507bd2f4a14b4a2 (diff)
Use a better performing query to find all MRs for pipeline
And add some specs.
Diffstat (limited to 'app/workers')
-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