From 0d43815620f96a061d7bc5c2c53748cac879c518 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kim=20=22BKC=22=20Carlb=C3=A4cker?= Date: Wed, 14 Dec 2016 16:33:16 +0100 Subject: [PATCH] This is needed as well... --- app/workers/build_queue_worker.rb | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/app/workers/build_queue_worker.rb b/app/workers/build_queue_worker.rb index f19290b0c1a..1ec020039cf 100644 --- a/app/workers/build_queue_worker.rb +++ b/app/workers/build_queue_worker.rb @@ -9,10 +9,17 @@ class BuildQueueWorker # Inject last_update into Redis Gitlab::Redis.with do |redis] new_update = Time.new.inspect - redis.set(current_runner_redis_key, new_update, ex: 60.minutes) + redis.set(runner_redis_key(runner), new_update, ex: 60.minutes) end end end end end + + private + + def runner_redis_key(runner) + "#{runner.token}_#{runner.tag_list}" + end + end