Exception: Agent::Lock::RedisUnavailableError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/agent/lock/error.rb

Overview

Redis was required and did not answer.

A RuntimeError, so a caller can rescue the connection failure apart from a Refused lock. Raised while a Facade is constructed, before any lock is taken, when every strategy has been tried and none was the file store.

Examples:

Agent::Lock::Facade.new(strategies: %w[redis], redis_url: "redis://127.0.0.1:1")