summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/workers/build_queue_worker.rb2
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|