BigW Consortium Gitlab

Commit aa224c13 by Kim "BKC" Carlbäcker

typo-o

parent 0d438156
......@@ -7,7 +7,7 @@ class BuildQueueWorker
project.runners.select do |runner|
if runner.can_pick?(build)
# Inject last_update into Redis
Gitlab::Redis.with do |redis]
Gitlab::Redis.with do |redis|
new_update = Time.new.inspect
redis.set(runner_redis_key(runner), new_update, ex: 60.minutes)
end
......
......@@ -36,7 +36,7 @@ module Ci
Gitlab::Metrics.add_event(:build_not_found)
if last_update == ""
Gitlab::Redis.with do |redis]
Gitlab::Redis.with do |redis|
new_update = Time.new.inspect
redis.set(current_runner_redis_key, new_update, ex: 60.minutes)
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