BigW Consortium Gitlab

Commit 0d438156 by Kim "BKC" Carlbäcker

This is needed as well...

parent a6ab8a34
......@@ -9,10 +9,17 @@ class BuildQueueWorker
# Inject last_update into Redis
Gitlab::Redis.with do |redis]
new_update = Time.new.inspect
redis.set(current_runner_redis_key, new_update, ex: 60.minutes)
redis.set(runner_redis_key(runner), new_update, ex: 60.minutes)
end
end
end
end
end
private
def runner_redis_key(runner)
"#{runner.token}_#{runner.tag_list}"
end
end
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