Commit 692426b1 authored by Kim "BKC" Carlbäcker's avatar Kim "BKC" Carlbäcker

Use correct variables

parent aa224c13
...@@ -4,7 +4,7 @@ class BuildQueueWorker ...@@ -4,7 +4,7 @@ class BuildQueueWorker
def perform(build_id) def perform(build_id)
Ci::Build.find_by(id: build_id).try do |build| 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) if runner.can_pick?(build)
# Inject last_update into Redis # Inject last_update into Redis
Gitlab::Redis.with do |redis| Gitlab::Redis.with do |redis|
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment