This commit is contained in:
Kim "BKC" Carlbäcker 2016-12-14 16:39:40 +01:00
parent 0d43815620
commit aa224c13fc
2 changed files with 2 additions and 2 deletions

View file

@ -7,7 +7,7 @@ class BuildQueueWorker
project.runners.select do |runner| 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|
new_update = Time.new.inspect new_update = Time.new.inspect
redis.set(runner_redis_key(runner), new_update, ex: 60.minutes) redis.set(runner_redis_key(runner), new_update, ex: 60.minutes)
end end

View file

@ -36,7 +36,7 @@ module Ci
Gitlab::Metrics.add_event(:build_not_found) Gitlab::Metrics.add_event(:build_not_found)
if last_update == "" if last_update == ""
Gitlab::Redis.with do |redis] Gitlab::Redis.with do |redis|
new_update = Time.new.inspect new_update = Time.new.inspect
redis.set(current_runner_redis_key, new_update, ex: 60.minutes) redis.set(current_runner_redis_key, new_update, ex: 60.minutes)
headers 'X-GitLab-Last-Update', new_update headers 'X-GitLab-Last-Update', new_update