diff options
author | Toon Claes <toon@gitlab.com> | 2017-04-20 09:44:01 +0300 |
---|---|---|
committer | Toon Claes <toon@gitlab.com> | 2017-04-24 11:07:01 +0300 |
commit | c623c41c2f917e0773a6e3f0b6c78b027ca846f7 (patch) | |
tree | 83c081ab86fd07801fd9c9686245fe8cef1cc8b4 /app/workers | |
parent | ccb9beeed0e418ef4dea201b3507bd2f4a14b4a2 (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.rb | 4 |
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 |