instance method build_retry_budget

Ruby on Rails edge

Since edge Private — implementation detail, not part of the public API

Signature

build_retry_budget(allow_retry:, reconnectable:)

No documentation comment.

Parameters

allow_retry keyreq
reconnectable keyreq
Source
# File activerecord/lib/active_record/connection_adapters/abstract_adapter.rb, line 1185
        def build_retry_budget(allow_retry:, reconnectable:)
          RetryBudget.new(
            retries: allow_retry ? connection_retries : 0,
            deadline: retry_deadline && Process.clock_gettime(Process::CLOCK_MONOTONIC) + retry_deadline,
            reconnectable: reconnectable
          )
        end

Defined in activerecord/lib/active_record/connection_adapters/abstract_adapter.rb line 1185 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveRecord::ConnectionAdapters::AbstractAdapter

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close