summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/workers/build_queue_worker.rb2
-rw-r--r--lib/ci/api/builds.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/workers/build_queue_worker.rb b/app/workers/build_queue_worker.rb
index 1ec020039cf..4cb910e90ca 100644
--- a/app/workers/build_queue_worker.rb
+++ b/app/workers/build_queue_worker.rb
@@ -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
diff --git a/lib/ci/api/builds.rb b/lib/ci/api/builds.rb
index 1ec4584a13f..acb0ca8719f 100644
--- a/lib/ci/api/builds.rb
+++ b/lib/ci/api/builds.rb
@@ -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