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

typo-o

parent 0d438156
...@@ -7,7 +7,7 @@ class BuildQueueWorker ...@@ -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
......
...@@ -36,7 +36,7 @@ module Ci ...@@ -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
......
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