Exception: ActiveRecord::Materialized::Refresher::AlreadyRefreshingError Private

Inherits:
RefreshError
  • Object
show all
Defined in:
lib/activerecord/materialized/refresher.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Raised when a cycle can't start because another is already running for the view. A subclass of RefreshError so existing rescues still catch it, but distinct so a caller (reconciliation) can treat an overlap as a benign, retryable defer — and so it is re-raised without #fail_refresh!, which would otherwise mark the view failed and clear the live cycle's refreshing guard.