instance method
build_retry_budget
Ruby on Rails edge
Since edge Private — implementation detail, not part of the public APISignature
build_retry_budget(allow_retry:, reconnectable:)
No documentation comment.
Parameters
-
allow_retrykeyreq -
reconnectablekeyreq
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