diff options
author | Kim "BKC" Carlbäcker <kim.carlbacker@gmail.com> | 2016-12-14 19:05:09 +0300 |
---|---|---|
committer | Kim "BKC" Carlbäcker <kim.carlbacker@gmail.com> | 2016-12-14 19:05:09 +0300 |
commit | 692426b13ecff871890a853bebef19d63ee4985e (patch) | |
tree | 44828449f2d9539ee592a3275369ba0dc1e3ed63 /app/workers/build_queue_worker.rb | |
parent | aa224c13fc8d9712e634dcb3843c73d3838fb20a (diff) |
Use correct variables
Diffstat (limited to 'app/workers/build_queue_worker.rb')
-rw-r--r-- | app/workers/build_queue_worker.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/workers/build_queue_worker.rb b/app/workers/build_queue_worker.rb index 4cb910e90ca..141c1543aeb 100644 --- a/app/workers/build_queue_worker.rb +++ b/app/workers/build_queue_worker.rb @@ -4,7 +4,7 @@ class BuildQueueWorker def perform(build_id) Ci::Build.find_by(id: build_id).try do |build| - project.runners.select do |runner| + build.project.runners.select do |runner| if runner.can_pick?(build) # Inject last_update into Redis Gitlab::Redis.with do |redis| |