BigW Consortium Gitlab

Commit 94b2df02 by Kim "BKC" Carlbäcker

Make ensure_runner_queue_value atomic

parent 811addf2
......@@ -132,6 +132,7 @@ module Ci
def ensure_runner_queue_value
Gitlab::Redis.with do |redis|
redis.multi do
value = redis.get(runner_queue_key)
if value == ""
value = Time.new.inspect
......@@ -140,6 +141,7 @@ module Ci
value
end
end
end
def is_runner_queue_value_latest?(value)
ensure_runner_queue_value == value if value.present?
......
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