gitlab-org--gitlab-foss/lib/gitlab/git/storage.rb

25 lines
536 B
Ruby
Raw Normal View History

2017-05-17 12:17:15 -04:00
module Gitlab
module Git
module Storage
class Inaccessible < StandardError
attr_reader :retry_after
def initialize(message = nil, retry_after = nil)
super(message)
@retry_after = retry_after
end
end
CircuitOpen = Class.new(Inaccessible)
Misconfiguration = Class.new(Inaccessible)
Failing = Class.new(Inaccessible)
2017-05-17 12:17:15 -04:00
REDIS_KEY_PREFIX = 'storage_accessible:'.freeze
def self.redis
Gitlab::Redis::SharedState
end
end
end
end