From 63ecb57f1b956bb7901e27f26f3bc2f3f62bcaa8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matija=20=C4=8Cupi=C4=87?= Date: Mon, 29 Jan 2018 23:25:56 +0100 Subject: [PATCH] Handle updating only contacted_at runner cache --- app/models/ci/runner.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/ci/runner.rb b/app/models/ci/runner.rb index f6d51fabd69..fb766cb3793 100644 --- a/app/models/ci/runner.rb +++ b/app/models/ci/runner.rb @@ -193,7 +193,7 @@ module Ci Gitlab::Redis::SharedState.with do |redis| redis.set("#{runner_info_redis_cache_key}:contacted_at", Time.now) - params.each do |key, value| + params && params.each do |key, value| redis_key = "#{runner_info_redis_cache_key}:#{key}" redis.set(redis_key, value) end